summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/components/components.html
blob: 7361019927ac94c2091f6e34df1dcc79c127f2c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!doctype html>
<html dir="$i18n{textdirection}" lang="$i18n{language}">
<head>
<meta charset="utf-8">
<title>$i18n{componentsTitle}</title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<link rel="stylesheet" href="components.css">
</head>
<body>
<div id="body-container" style="visibility:hidden">

  <div id="header"><h1>$i18n{componentsTitle}</h1></div>
  <div id="component-placeholder"></div>
  <div id="component-template" hidden>

    <div id="container">
    <div id="top">

      <div class="section-header">
        <span class="section-header-title">$i18n{componentsTitle}</span>
        <span class="section-header-title"
              jsdisplay="components.length > 0">(<span
              jscontent="components.length"></span>)</span>
      </div>

    </div>
    </div>

    <div class="content">
      <div class="component-name no-components"
           jsdisplay="components.length === 0">
        <div>$i18n{noComponents}</div>
      </div>

      <div jsdisplay="components.length > 0">
        <div class="component"
             jsselect="components">
          <div class='component-enabled'>
            <div class="component-text">
              <div>
                <span class="component-name" dir="ltr"
                    jscontent="name">
                </span>
                <span>
                  - <span>$i18n{componentVersion}</span>
                    <span dir="ltr" jscontent="version"
                        jsvalues=".id: 'version-' + id"></span>
                </span>
              </div>
            </div>
          </div>
          <div class="component-text">
            <span>$i18n{statusLabel}</span>
            -
            <span jscontent="status" jsvalues=".id: 'status-' + id">
            <span>
          </div>
          <div class="component-actions">
            <button class="button-check-update" guest-disabled
                jsvalues=".id:id">
              $i18n{checkUpdate}
            </button>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<script type="module" src="components.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>
</body>
</html>