Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1225)

Delta Between Two Patch Sets: app/subapps/browser/templates/browser_charm.handlebars

Issue 8679045: Rearchitect the browser to use routes more
Left Patch Set: - Created 11 years, 11 months ago
Right Patch Set: Rearchitect the browser to use routes more Created 11 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « app/subapps/browser/browser.js ('k') | app/subapps/browser/templates/editorial.handlebars » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 <div class="charm yui3-g"> 1 <div class="charm yui3-g">
2 <div class="content yui3-u-{{#if isFullscreen}}5-6{{else}}1{{/if}}"> 2 <div class="content yui3-u-{{#if isFullscreen}}5-6{{else}}1{{/if}}">
3 <div class="nav"> 3 <div class="nav">
4 <a href="/bws/sidebar/" class="back">{{#if isFullscreen}}Back{{else} }Close{{/if}}</a> 4 <a href="/bws/sidebar/" class="back">{{#if isFullscreen}}Back{{else} }Close{{/if}}</a>
jeff.pihach 2013/04/15 18:21:21 this url will need to be generated and then passed
rharding 2013/04/15 19:25:11 Yes, url generation will come in a follow up branc
5 <a href="" class="add">Add</a> 5 <a href="" class="add">Add</a>
6 <a href="" class="share"> 6 <a href="" class="share">
7 <img src="/juju-ui/assets/images/share_icon.jpg" alt="Share" /> 7 <img src="/juju-ui/assets/images/share_icon.jpg" alt="Share" />
8 </a> 8 </a>
9 </div> 9 </div>
10 10
11 <div class="heading yui3-g"> 11 <div class="heading yui3-g">
12 <div class="yui3-u"> 12 <div class="yui3-u">
13 <img src="data:image/svg;base64,{{ icon }}" alt="{{ name }} icon "> 13 <img src="data:image/svg;base64,{{ icon }}" alt="{{ name }} icon ">
14 </div> 14 </div>
15 <div class="charm-details yui3-u-1-2"> 15 <div class="charm-details yui3-u-1-2">
16 <h1>{{ name }}</h1> 16 <h1>{{ name }}</h1>
17 <div class="providers">
18 <img src="/juju-ui/assets/images/provider_icons/provider-lxc 02.svg"
19 alt="Provider name" />
20 <img src="/juju-ui/assets/images/provider_icons/provider-ope nstack.svg"
21 alt="Provider name" />
22 <img src="/juju-ui/assets/images/provider_icons/provider-hp. svg"
23 alt="Provider name" />
24 <img src="/juju-ui/assets/images/provider_icons/provider-aws .svg"
25 alt="Provider name" />
26 <img src="/juju-ui/assets/images/provider_icons/provider-maa s.svg"
27 alt="Provider name" />
28 </div>
29 <dl> 17 <dl>
30 <dt>Recent activity</dt> 18 <dt>Recent activity</dt>
31 <dd> 19 <dd>
32 {{ recent_download_count }} 20 <strong>{{ recent_download_count }}</strong>
33 {{pluralize 'download' recent_download_count}}, 21 {{pluralize 'download' recent_download_count}},
34 {{ recent_commit_count }} 22 <strong>{{ recent_commit_count }}</strong>
35 {{pluralize 'commit' recent_commit_count}} 23 {{pluralize 'commit' recent_commit_count}}
36 </dd> 24 </dd>
37 <dt>Ubuntu series</dt> 25 <dt>Ubuntu series</dt>
38 <dd>{{ distro_series }}</dd> 26 <dd>{{ distro_series }}</dd>
39 <dt>Location</dt> 27 <dt>Location</dt>
40 <dd>{{ url }}</dd> 28 <dd>{{ url }}</dd>
41 <dt>Links</dt> 29 <dt>Links</dt>
42 <dd> 30 <dd>
43 <a href="#">Source</a> 31 <a href="#">Source</a>
44 <a href="{{ code_source.bugs_link }}">Bugs</a> 32 <a href="{{ code_source.bugs_link }}">Bugs</a>
45 </dd> 33 </dd>
46 </dl> 34 </dl>
47 </div> 35 </div>
48 </div> 36 </div>
49 37
50 <div class="changelog"> 38 <div class="changelog">
51 <h3 class="section-title" data-state="closed"> 39 <h3 class="section-title" data-state="closed">
52 Change log 40 Change log
jeff.pihach 2013/04/15 18:21:21 isn't changelog one word?
rharding 2013/04/15 19:25:11 I would say so, but we're going off the UX docs gi
53 {{#if recent_commits}} 41 {{#if recent_commits}}
54 <span class="expand"> 42 <span class="expand">
55 <span class="more"> 43 <span class="more">
56 <img src="/juju-ui/assets/images/expand_icon.jpg" 44 <img src="/juju-ui/assets/images/expand_icon.jpg"
57 alt="Expand" /> 45 alt="Expand" />
58 </span> 46 </span>
59 <span class="less hidden"> 47 <span class="less hidden">
60 <img src="/juju-ui/assets/images/contract_icon.jpg" 48 <img src="/juju-ui/assets/images/contract_icon.jpg"
61 alt="Contract" /> 49 alt="Contract" />
62 </span> 50 </span>
(...skipping 21 matching lines...) Expand all
84 {{/prettyCommits.remaining}} 72 {{/prettyCommits.remaining}}
85 </ul> 73 </ul>
86 </div> 74 </div>
87 {{else}} 75 {{else}}
88 <p>No change history exists.</p> 76 <p>No change history exists.</p>
89 {{/if}} 77 {{/if}}
90 </div> 78 </div>
91 79
92 <div class="summary"> 80 <div class="summary">
93 <h2>Summary</h2> 81 <h2>Summary</h2>
94 {{ summary }} 82 <p>{{ summary }}</p>
95 <h2>Description</h2> 83 <h2>Description</h2>
96 {{#if isFullscreen}} 84 <p>
97 {{ description }} 85 {{#if isFullscreen}}
98 {{else}} 86 {{ description }}
99 {{ truncate description 300 }} 87 {{else}}
100 {{/if}} 88 {{ truncate description 300 }}
89 {{/if}}
90 </p>
101 </div> 91 </div>
102 92
103 <div class="tabs"> 93 <div class="tabs">
104 <ul> 94 <ul>
105 <li><a href="#bws-readme" class="bws-readme">Readme</a></li> 95 <li><a href="#bws-readme" class="bws-readme">Readme</a></li>
106 <li><a href="#bws-interfaces" class="bws-interfaces">Interfaces< /a></li> 96 <li><a href="#bws-interfaces" class="bws-interfaces">Interfaces< /a></li>
107 <li><a href="#bws-configuration" class="bws-configuration">Confi guration</a></li> 97 <li><a href="#bws-configuration" class="bws-configuration">Confi guration</a></li>
108 <li><a href="#bws-qa" class="bws-qa">Quality</a></li> 98 <li><a href="#bws-qa" class="bws-qa">Quality</a></li>
109 <li><a href="#bws-hooks" class="bws-hooks">Hooks</a></li> 99 <li><a href="#bws-hooks" class="bws-hooks">Hooks</a></li>
110 </ul> 100 </ul>
111 <div> 101 <div>
112 <div id="bws-readme">Readme</div> 102 <div id="bws-readme">Readme</div>
113 <div id="bws-interfaces"> 103 <div id="bws-interfaces">
114 <p class="intro"> 104 <p class="intro">
115 Interfaces determine how this charm relates to other 105 {{#unless requires}}
116 charms. A relationship between charms can only be made i f 106 {{#if provides}}
117 they share a common interface. This charm requires certa in 107 Interfaces determine how this charm relates to
118 interfaces to be provided by other charms. Similarly, th is 108 other charms. A relationship between charms can
119 charm provides other interfaces that can be used by 109 only be made if they share a common interface.
120 other charms. 110 This charm requires certain interfaces to be
121 </p> 111 provided by other charms. Similarly, this charm
122 <div class="yui3-g"> 112 provides other interfaces that can be used by
123 <div class="interfaces-heading yui3-u-1"> 113 other charms.
124 <h3>Requires</h3> 114 {{else}}
115 Interfaces determine how this charm relates to
116 other charms. A relationship between charms can
117 only be made if they share a common interface.
118 </p>
119 <p>This charm does not have any interfaces.</p>
120 {{/if}}
121 {{/unless}}
122 </p>
123 {{#if requires}}
124 <div class="yui3-g">
125 <div class="interfaces-heading yui3-u-1">
126 <h3>Requiress</h3>
127 </div>
125 </div> 128 </div>
126 </div>
127 {{#if requires}}
128 <ul class="interface-list"> 129 <ul class="interface-list">
129 {{#arrayObject requires}} 130 {{#arrayObject requires}}
130 <li class="interface-row yui3-g"> 131 <li class="interface-row yui3-g">
131 <div class="interface yui3-u-1-3"> 132 <div class="interface yui3-u-1-3">
132 <h4>{{value.interface}}</h4> 133 <h4>{{value.interface}}</h4>
133 <div>{{key}}</div> 134 <div>{{key}}</div>
134 </div> 135 </div>
135 </li> 136 </li>
136 {{/arrayObject}} 137 {{/arrayObject}}
137 </ul> 138 </ul>
138 {{else}}
139 <p>This charm does not require any interfaces.</p>
140 {{/if}} 139 {{/if}}
141 <div class="yui3-g"> 140 {{#if provides}}
142 <div class="interfaces-heading yui3-u-1"> 141 <div class="yui3-g">
143 <h3>Provides</h3> 142 <div class="interfaces-heading yui3-u-1">
143 <h3>Provides</h3>
144 </div>
144 </div> 145 </div>
145 </div>
146 {{#if provides}}
147 <ul class="interface-list"> 146 <ul class="interface-list">
148 {{#arrayObject provides}} 147 {{#arrayObject provides}}
149 <li class="interface-row yui3-g"> 148 <li class="interface-row yui3-g">
150 <div class="interface yui3-u-1-3"> 149 <div class="interface yui3-u-1-3">
151 <h4>{{value.interface}}</h4> 150 <h4>{{value.interface}}</h4>
152 <div>{{key}}</div> 151 <div>{{key}}</div>
153 </div> 152 </div>
154 </li> 153 </li>
155 {{/arrayObject}} 154 {{/arrayObject}}
156 </ul> 155 </ul>
157 {{else}}
158 <p>This charm does not provide any interfaces.</p>
159 {{/if}} 156 {{/if}}
160 </div> 157 </div>
161 <div id="bws-configuration"> 158 <div id="bws-configuration">
159 <p class="intro">
160 These are the ways in which you can configure this·
161 charm to best suit your deployment. You can change the·
162 default configuration settings either before or after·
163 you have deployed the charm, if necessary.
164 </p>
162 {{#if options}} 165 {{#if options}}
163 <dl> 166 <dl>
164 {{#arrayObject options}} 167 {{#arrayObject options}}
165 <dt> 168 <dt>
166 <dfn>{{key}}</dfn> 169 <dfn>{{key}}</dfn>
167 <em>{{value.type}}</em> 170 <em>{{value.type}}</em>
168 </dt> 171 </dt>
169 <dd> 172 <dd>
170 <div>Default: {{value.default}}</div> 173 <div>Default: {{value.default}}</div>
171 <div>{{value.description}}</div> 174 <p>{{value.description}}</p>
172 </dd> 175 </dd>
173 {{/arrayObject}} 176 {{/arrayObject}}
174 </dl> 177 </dl>
175 {{else}} 178 {{else}}
176 <p>This charm does not expose any configuration options.</ p> 179 <p>This charm does not expose any configuration options.</ p>
177 {{/if}} 180 {{/if}}
178 </div> 181 </div>
179 <div id="bws-qa">Quality</div> 182 <div id="bws-qa">Quality</div>
180 <div id="bws-hooks"> 183 <div id="bws-hooks">
184 <p class="intro">
185 Hooks are the pieces of code that comprise the charm.·
186 A particular hook responds to specific events that Juju
187 gives the charm, e.g. when there’s a change in the·
188 environment or an administrator has made a change to·
189 its configuration. Hooks are of interest mainly to·
190 charm authors and advanced users. Select a hook below·
191 to view its code.
192 </p>
181 <select> 193 <select>
182 <option>--</option> 194 <option>--</option>
183 {{#each files}} 195 {{#each files}}
184 <option value="{{ . }}">{{ . }}</option> 196 <option value="{{ . }}">{{ . }}</option>
185 {{/each}} 197 {{/each}}
186 </select> 198 </select>
187 <div class="filecontent"> 199 <div class="filecontent">
188 Select a file from the list to view. 200 Select a file from the list to view.
189 </div> 201 </div>
190 </div> 202 </div>
191 </div> 203 </div>
192 </div> 204 </div>
193 </div> 205 </div>
194 {{#if isFullscreen}} 206 {{#if isFullscreen}}
195 <div class="sidebar yui3-u-1-6"> 207 <div class="sidebar yui3-u-1-6">
196 <h2>Useful links</h2> 208 <h2>Useful links</h2>
197 <ul class="vertical-links"> 209 <ul class="vertical-links">
198 <li><a href="">Juju community</a></li> 210 <li><a href="">Juju community</a></li>
199 <li><a href="">Online resources</a></li> 211 <li><a href="">Online resources</a></li>
200 <li><a href="">Write your own Charm</a></li> 212 <li><a href="">Write your own Charm</a></li>
201 <li><a href="">Contribute to this Charm</a></li> 213 <li><a href="">Contribute to this Charm</a></li>
202 </ul> 214 </ul>
203 </div> 215 </div>
204 {{/if}} 216 {{/if}}
205 </div> 217 </div>
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b