browser/devtools/app-manager/content/projects.xhtml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 5 <!DOCTYPE html [
michael@0 6 <!ENTITY % appMgrDTD SYSTEM "chrome://browser/locale/devtools/app-manager.dtd" >
michael@0 7 %appMgrDTD;
michael@0 8 ]>
michael@0 9
michael@0 10 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 11
michael@0 12 <head>
michael@0 13 <meta charset="utf8"/>
michael@0 14 <base href="chrome://browser/content/devtools/app-manager/"></base>
michael@0 15 <title>&projects.title;</title>
michael@0 16 <link rel="stylesheet" href="chrome://browser/skin/devtools/app-manager/projects.css" type="text/css"/>
michael@0 17 <script type="application/javascript;version=1.8" src="utils.js"></script>
michael@0 18 <script type="application/javascript;version=1.8" src="projects.js"></script>
michael@0 19 <script type="application/javascript;version=1.8" src="template.js"></script>
michael@0 20 <script type="application/javascript;version=1.8" src="manifest-editor.js"></script>
michael@0 21 </head>
michael@0 22
michael@0 23 <body onload="UI.onload()">
michael@0 24 <aside id="sidebar">
michael@0 25 <div id="project-list" template='{"type":"attribute","path":"projects.length","name":"projects-count"}'>
michael@0 26 <div template-loop='{"arrayPath":"projects","childSelector":"#project-item-template"}'></div>
michael@0 27 <div id="no-project">&projects.noProjects;</div>
michael@0 28 </div>
michael@0 29 <div id="new-packaged-project" onclick="UI.addPackaged()" title="&projects.addPackagedTooltip;">&projects.addPackaged;</div>
michael@0 30 <div id="new-hosted-project">&projects.addHosted;
michael@0 31 <form onsubmit="UI.addHosted(); return false;" id="new-hosted-project-wrapper">
michael@0 32 <input value="" id="url-input" type="url" required="true" pattern="(https?|chrome)://.+" placeholder="&projects.hostedManifestPlaceHolder2;" size="50" />
michael@0 33 <div onclick="UI.addHosted()" id="new-hosted-project-click" title="&projects.addHostedTooltip;"></div>
michael@0 34 <input type="submit" hidden="true"></input>
michael@0 35 </form>
michael@0 36 </div>
michael@0 37 </aside>
michael@0 38 <section id="lense"></section>
michael@0 39 </body>
michael@0 40
michael@0 41 <template id="project-item-template">
michael@0 42 <div class="project-item" template='{"type":"attribute","path":"location","name":"id"}' onclick="UI.selectProject(this.id)">
michael@0 43 <div class="project-item-status" template='{"type":"attribute","path":"validationStatus","name":"status"}'></div>
michael@0 44 <img class="project-item-icon" template='{"type":"attribute","path":"icon","name":"src"}' />
michael@0 45 <div class="project-item-meta">
michael@0 46 <div class="button-remove" onclick="UI.remove(this.dataset.location, event)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.removeAppFromList;"></div>
michael@0 47 <strong template='{"type":"textContent","path":"manifest.name"}'></strong>
michael@0 48 <span class="project-item-type" template='{"type":"textContent","path":"type"}'></span>
michael@0 49 <p class="project-item-description" template='{"type":"textContent","path":"manifest.description"}'></p>
michael@0 50 <div template='{"type":"attribute","path":"validationStatus","name":"status"}'>
michael@0 51 <div class="project-item-errors"><span template='{"type":"textContent","path":"errorsCount"}'></span></div>
michael@0 52 <div class="project-item-warnings"><span template='{"type":"textContent","path":"warningsCount"}'></span></div>
michael@0 53 </div>
michael@0 54 </div>
michael@0 55 </div>
michael@0 56 </template>
michael@0 57
michael@0 58 <template id="lense-template">
michael@0 59 <div>
michael@0 60 <div class="project-details" template='{"type":"attribute","path":"validationStatus","name":"status"}'>
michael@0 61 <div class="project-header">
michael@0 62 <img class="project-icon" template='{"type":"attribute","path":"icon","name":"src"}'/>
michael@0 63 <div class="project-metadata">
michael@0 64 <div class="project-title">
michael@0 65 <h1 template='{"type":"textContent","path":"manifest.name"}'></h1>
michael@0 66 <div class="project-status" template='{"type":"attribute","path":"validationStatus","name":"status"}'>
michael@0 67 <p class="project-validation valid">&projects.valid;</p>
michael@0 68 <p class="project-validation warning">&projects.warning;</p>
michael@0 69 <p class="project-validation error">&projects.error;</p>
michael@0 70 </div>
michael@0 71 <div class="project-status" template='{"type":"attribute","path":"type","name":"type"}'>
michael@0 72 <p class="project-type hosted">&projects.hosted;</p>
michael@0 73 <p class="project-type packaged">&projects.packaged;</p>
michael@0 74 </div>
michael@0 75 </div>
michael@0 76 <span template='{"type":"textContent","path":"manifest.developer.name"}'></span>
michael@0 77 <p class="project-location" template='{"type":"textContent","path":"location"}' onclick="UI.reveal(this.textContent)"></p>
michael@0 78 <p class="project-description" template='{"type":"textContent","path":"manifest.description"}'></p>
michael@0 79 </div>
michael@0 80 </div>
michael@0 81 <div class="project-buttons" template='{"type":"attribute","path":"type","name":"type"}'>
michael@0 82 <button class="project-button-update" onclick="UI.update(this, this.dataset.location)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.updateAppTooltip;">&projects.updateApp;</button>
michael@0 83 <button class="device-action project-button-debug" onclick="UI.debug(this, this.dataset.location)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.debugAppTooltip;">&projects.debugApp;</button>
michael@0 84 </div>
michael@0 85 <div class="project-errors" template='{"type":"textContent","path":"errors"}'></div>
michael@0 86 <div class="project-warnings" template='{"type":"textContent","path":"warnings"}'></div>
michael@0 87 </div>
michael@0 88 <div class="manifest-editor">
michael@0 89 <div class="manifest-header" template='{"type":"attribute","path":"type","name":"type"}'>
michael@0 90 <h2 class="editable" title="&projects.manifestEditorTooltip;">&projects.manifestEditor;</h2>
michael@0 91 <h2 class="viewable" title="&projects.manifestViewerTooltip;">&projects.manifestViewer;</h2>
michael@0 92 <button class="editable manifest-button-save" onclick="UI.saveManifest(this, this.dataset.location)" template='{"type":"attribute","path":"location","name":"data-location"}' title="&projects.saveManifestTooltip;">&projects.saveManifest;</button>
michael@0 93 </div>
michael@0 94 </div>
michael@0 95 </div>
michael@0 96 </template>
michael@0 97 </html>

mercurial