Project

General

Profile

Download (3.33 KB) Statistics
| Branch: | Tag: | Revision:

haketilo / html / install.html @ 9bee4afa

1
#IF !INSTALL_LOADED
2
#DEFINE INSTALL_LOADED
3
<!--
4
    SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0
5

    
6
    Install mappings/resources in Haketilo.
7

    
8
    This file is part of Haketilo.
9

    
10
    Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
11

    
12
    File is dual-licensed. You can choose either GPLv3+, CC BY-SA or both.
13

    
14
    This program is free software: you can redistribute it and/or modify
15
    it under the terms of the GNU General Public License as published by
16
    the Free Software Foundation, either version 3 of the License, or
17
    (at your option) any later version.
18

    
19
    This program is distributed in the hope that it will be useful,
20
    but WITHOUT ANY WARRANTY; without even the implied warranty of
21
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
    GNU General Public License for more details.
23

    
24
    You should have received a copy of the GNU General Public License
25
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
26

    
27
    I, Wojtek Kosior, thereby promise not to sue for violation of this file's
28
    licenses. Although I request that you do not make use of this code in a
29
    proprietary program, I am not going to enforce this in court.
30
  -->
31

    
32
<!--
33
    This is not a standalone page. This file is meant to be imported into other
34
    HTML code.
35
  -->
36

    
37
#INCLUDE html/dialog.html
38
#INCLUDE html/item_preview.html
39

    
40
#LOADCSS html/reset.css
41
#LOADCSS html/base.css
42
<style>
43
  .install_entry_li {
44
      display: flex;
45
      align-items: center;
46
      margin: 0;
47
      padding: 0.2em;
48
  }
49
  .install_entry_li:nth-child(2n) {
50
      background-color:#dadada;
51
  }
52

    
53
  .install_item_info {
54
      display: grid;
55
      grid-template-columns: auto;
56
      flex: 1 1 auto;
57
      min-width: 0;
58
  }
59
  .install_item_info > span {
60
      white-space: nowrap;
61
      overflow: hidden;
62
      text-overflow: ellipsis;
63
  }
64
  .install_item_more_info {
65
      font-size: 80%;
66
      font-style: italic;
67
  }
68

    
69
  .install_bottom_buttons {
70
      margin: 1em;
71
      text-align: center;
72
  }
73
</style>
74
<template>
75
  <div id="install_view" data-template="main_div">
76
    <div data-template="install_preview">
77
      <ul data-template="to_install_list"></ul>
78
      <div class="install_bottom_buttons">
79
	<button data-template="install_but">Install</button>
80
	<button data-template="cancel_but">Cancel</button>
81
      </div>
82
    </div>
83
    <div data-template="dialog_container">
84
      <!-- dialog shall be dynamically inserted here -->
85
    </div>
86
    <div data-template="mapping_preview_container">
87
      <!-- item preview shall be dynamically inserted here -->
88
      <div class="install_bottom_buttons">
89
	<button data-template="mapping_back_but">Back</button>
90
      </div>
91
    </div>
92
    <div data-template="resource_preview_container">
93
      <div class="install_bottom_buttons">
94
	<button data-template="resource_back_but">Back</button>
95
      </div>
96
    </div>
97
  </div>
98

    
99
  <li id="install_list_entry" data-template="main_li"
100
      class="install_entry_li">
101
    <div class="install_item_info">
102
      <span data-template="item_name"></span>
103
      <span data-template="item_id" class="install_item_more_info"></span>
104
      <span data-template="update_info"
105
	    class="install_item_more_info hide">
106
	(update from <span data-template="old_ver"></span>)
107
      </span>
108
    </div>
109
    <span class="text_right">
110
      <button data-template="details_but">Details</button>
111
    </span>
112
  </li>
113
</template>
114
#ENDIF
(10-10/28)