Html程序  |  218行  |  9.35 KB

<!DOCTYPE HTML>
<html i18n-values="dir:textdirection;">
<head>
<meta charset="utf-8">
<title i18n-content="pluginsTitle"></title>
<link rel="stylesheet" href="plugins.css">
<if expr="pp_ifdef('chromeos')">
  <link rel="stylesheet"
      href="chrome://resources/css/chromeos/ui_account_tweaks.css">
</if>
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<div id="body-container" style="visibility:hidden">

  <div id="header"><h1 i18n-content="pluginsTitle">TITLE</h1></div>

  <div id="pluginTemplate">

    <div id="container" class="vbox-container">
    <div id="top" class="wbox">

      <div class="section-header">
        <table cellpadding="0" cellspacing="0"><tr valign="center">
          <td>
            <span class="section-header-title" i18n-content="pluginsTitle"
              >TITLE</span>
            <span class="section-header-title"
                  jsdisplay="plugins.length > 0">(<span
                  jscontent="plugins.length"></span>)</span>
          </td>
          <td width="18">
            <img id="collapse" class="tmi-mode-image" style="display:none"
                 src="../../../ui/webui/resources/images/minus.png">
            <img id="expand" class="tmi-mode-image"
                 src="../../../ui/webui/resources/images/plus.png">
          </td>
          <td>
            <div class="tmi-mode-link">
              <a id="details-link" style="cursor: default"
                 i18n-content="pluginsDetailsModeLink">DETAILS</a>
            </div>
          </td>
        </tr></table>
      </div>

    </div>
    </div>

    <div class="content">
      <div class="plugin-name no-plugins" jsdisplay="plugins.length === 0">
        <div i18n-content="noPlugins">NO_PLUGINS_ARE_INSTALLED</div>
      </div>

      <div jsdisplay="plugins.length > 0">
      <div class="plugin" jsselect="plugins">
        <table width="100%" cellpadding="2" cellspacing="0">
        <tr jsvalues=
            ".className:isPluginEnabled($this) ? 'plugin-enabled' : 'plugin-disabled'">
        <td valign="top">
          <div class="plugin-text">
            <div>
              <span class="plugin-name" dir="ltr"
                    jscontent="name">NAME</span>
              <span jsdisplay="plugin_files.length > 1"
                  jscontent="'(' + plugin_files.length +' files)'">(x)</span>
              <span jsdisplay="shouldDisplayPluginVersion($this)">
                - <span i18n-content="pluginVersion">VERSION</span>
                <span jsvalues=".className:critical? 'critical': ''"
                    dir="ltr" jscontent="version">x.x.x.x</span>
              </span>
              <a jsdisplay="critical" jsvalues=".href:update_url"
                    i18n-content="pluginDownload">DOWNLOAD UPDATE</a>
              <span jsdisplay="enabledMode == 'disabledByUser'"
                    i18n-content="pluginDisabled">(DISABLED)</span>
              <span jsdisplay="enabledMode == 'disabledByPolicy'"
                    i18n-content="pluginDisabledByPolicy">(DISABLED_BY_POLICY)</span>
              <span jsdisplay="enabledMode == 'enabledByPolicy'"
                    i18n-content="pluginEnabledByPolicy">(ENABLED_BY_POLICY)</span>
              <span jsdisplay="enabledMode == 'managedByPolicy'"
                    i18n-content="pluginGroupManagedByPolicy">(MANAGED_BY_POLICY)</span>
              <div jsdisplay="shouldDisplayPluginDescription($this)">
                <span dir="ltr" jsvalues=".innerHTML:description">
              </div>
            </div>
            <div jsselect="plugin_files" class="plugin-details">
              <div class="show-in-tmi-mode plugin-file">
                <div jsvalues=
                  ".className:isPluginEnabled($this) ? 'plugin-enabled' : 'plugin-disabled'">
                  <div><table><tr>
                    <td class="plugin-details-label"
                        i18n-content="pluginName">NAME:</td>
                    <td><span dir="ltr" jscontent="name">NAME</span></td>
                  </tr></table></div>
                  <div><table>
                    <tr jsdisplay="shouldDisplayPluginDescription($this)">
                      <td class="plugin-details-label"
                          i18n-content="pluginDescription">DESCRIPTION:</td>
                      <td>
                        <span dir="ltr" jsvalues=".innerHTML:description">
                      </td>
                    </tr>
                  </table></div>
                  <div><table><tr>
                    <td class="plugin-details-label"
                        i18n-content="pluginVersion">VERSION:</td>
                    <td><span dir="ltr" jscontent="version">x.x.x.x</span></td>
                  </tr></table></div>
                  <div><table><tr>
                    <td class="plugin-details-label"
                        i18n-content="pluginPath">PATH:</td>
                    <td><span dir="ltr" jscontent="path"></span></td>
                  </tr></table></div>
                  <div><table><tr>
                    <td class="plugin-details-label"
                        i18n-content="pluginType">TYPE:</td>
                    <td><span dir="ltr" jscontent="type"></span></td>
                  </tr></table></div>
                  <div><table><tr>
                    <td class="plugin-details-label">&nbsp;</td>
                    <td>
                      <span jsdisplay="enabledMode == 'disabledByPolicy'"
                          i18n-content="pluginDisabledByPolicy">(DISABLED_BY_POLICY)</span>
                      <span jsdisplay="enabledMode == 'enabledByPolicy'"
                          i18n-content="pluginEnabledByPolicy">(ENABLED_BY_POLICY)</span>
                      <span guest-visibility="disabled">
                        <a
                          class="disable-plugin-link"
                          jsvalues=".path:path"
                          jsdisplay="enabledMode == 'enabledByUser'"
                          href="#"
                          i18n-content="disable"
                          >DISABLE</a>
                        <a
                          class="enable-plugin-link"
                          jsvalues=".path:path"
                          jsdisplay="enabledMode == 'disabledByUser'"
                          href="#"
                          i18n-content="enable"
                          >ENABLE</a>
                      </span>
                    </td>
                  </tr></table></div>
                  <table><tr jsdisplay="mimeTypes.length > 0">
                    <td class="plugin-details-label"
                        i18n-content="pluginMimeTypes">MIME_TYPES:</td>
                    <td><table width="100%" class="mime-types">
                      <tr class="header">
                        <td i18n-content="pluginMimeTypesMimeType"
                            >MIME type</td>
                        <td i18n-content="pluginMimeTypesDescription"
                            >DESCRIPTION</td>
                        <td i18n-content="pluginMimeTypesFileExtensions"
                            >FILE_EXTENSIONS</td>
                      </tr>
                      <tr jsselect="mimeTypes">
                        <td><span dir="ltr"
                                  jscontent="mimeType"></span></td>
                        <td><span dir="ltr"
                                  jsvalues=".innerHTML:description"></span></td>
                        <td><table jsdisplay="fileExtensions.length > 0"
                                   class="hlisting">
                          <tr><td jsselect="fileExtensions">
                            <span dir="ltr" jscontent="'.' + $this">
                          </td></tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr></table>
                </div>
              </div>
            </div>
          </div>
          <div class="plugin-actions" guest-visibility="disabled">
            <span>
              <a
                class="disable-group-link"
                jsvalues=".path:name"
                jsdisplay="enabledMode == 'enabledByUser'"
                href="#"
                i18n-content="disable"
                >DISABLE</a>
              <a
                class="enable-group-link"
                jsvalues=".path:name"
                jsdisplay="enabledMode == 'disabledByUser'"
                href="#"
                i18n-content="enable"
                >ENABLE</a>
            </span>
            <input
                class="always-allow" type="checkbox"
                jsvalues=
                    ".identifier:id; id:id + '-always-allowed'; .checked:alwaysAllowed; disabled:!isPluginEnabled($this)">
            <label jsvalues="for:id + '-always-allowed'"
                i18n-content="alwaysAllowed"></label>
          </div>
        </td>
        </tr>
        </table>
      </div>
      </div>
    </div>
  </div>
</div>
<script src="chrome://resources/js/util.js"></script>
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://plugins/plugins.js"></script>
<if expr="pp_ifdef('chromeos')">
  <script src="chrome://resources/js/chromeos/ui_account_tweaks.js"></script>
</if>

<script src="chrome://resources/js/load_time_data.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>
<script src="chrome://plugins/strings.js"></script>
<script src="chrome://resources/js/i18n_template2.js"></script>
</body>
</html>