Show More
@@ -1,441 +1,446 b'' | |||
|
1 | 1 | // summary.less |
|
2 | 2 | // For use in RhodeCode applications; |
|
3 | 3 | // Used for headers and file detail summary screens. |
|
4 | 4 | |
|
5 | 5 | .summary { |
|
6 | 6 | clear: both; |
|
7 | 7 | float: none; |
|
8 | 8 | position: relative; |
|
9 | 9 | width: 100%; |
|
10 | 10 | margin: 0; |
|
11 | 11 | padding: 0; |
|
12 | 12 | background: #FCFCFC; |
|
13 | 13 | border: 1px solid #EAEAEA; |
|
14 | 14 | border-radius: @border-radius; |
|
15 | 15 | margin-bottom: 20px; |
|
16 | 16 | |
|
17 | 17 | .summary-detail-header { |
|
18 | 18 | display: block; |
|
19 | 19 | width: 100%; |
|
20 | 20 | margin-bottom: @textmargin; |
|
21 | 21 | padding: 0 0 .5em 0; |
|
22 | 22 | border-bottom: @border-thickness solid @border-default-color; |
|
23 | 23 | |
|
24 | 24 | .breadcrumbs { |
|
25 | 25 | display: inline; |
|
26 | 26 | margin: 0; |
|
27 | 27 | padding: 0; |
|
28 | 28 | } |
|
29 | 29 | |
|
30 | 30 | h4 { |
|
31 | 31 | margin: 0 1em 0 0; |
|
32 | 32 | padding: 0; |
|
33 | 33 | line-height: 1.2em; |
|
34 | 34 | font-size: @basefontsize; |
|
35 | 35 | } |
|
36 | 36 | |
|
37 | 37 | .action_link { |
|
38 | 38 | float: right; |
|
39 | 39 | } |
|
40 | 40 | |
|
41 | 41 | .new-file { |
|
42 | 42 | float: right; |
|
43 | 43 | margin-top: -1.5em; |
|
44 | 44 | } |
|
45 | 45 | } |
|
46 | 46 | |
|
47 | 47 | .summary-detail { |
|
48 | 48 | float: none; |
|
49 | 49 | position: relative; |
|
50 | 50 | width: 100%; |
|
51 | 51 | margin: 0; |
|
52 | 52 | padding: 0; |
|
53 | 53 | |
|
54 | 54 | .file_diff_buttons { |
|
55 | 55 | margin-top: @space; |
|
56 | 56 | } |
|
57 | 57 | |
|
58 | 58 | // commit message |
|
59 | 59 | .commit { |
|
60 | 60 | white-space: pre-wrap; |
|
61 | 61 | } |
|
62 | 62 | |
|
63 | 63 | .left-clone { |
|
64 | 64 | float: left; |
|
65 | 65 | height: 30px; |
|
66 | 66 | margin: 0; |
|
67 | 67 | padding: 0; |
|
68 | 68 | width: 130px; |
|
69 | 69 | font-weight: @text-semibold-weight; |
|
70 | 70 | font-family: @text-semibold; |
|
71 | 71 | } |
|
72 | 72 | .left-clone select { |
|
73 | 73 | width: 130px; |
|
74 | 74 | margin-right: 0; |
|
75 | 75 | background-color: @grey7; |
|
76 | 76 | border-color: @grey4; |
|
77 | 77 | color: #5C5C5C; |
|
78 | 78 | border-top-right-radius: 0; |
|
79 | 79 | border-bottom-right-radius: 0; |
|
80 | 80 | } |
|
81 | 81 | |
|
82 | 82 | .right-clone { |
|
83 | 83 | float: left; |
|
84 | 84 | width: ~"calc(100% - 170px)"; |
|
85 | 85 | |
|
86 | 86 | .clipboard-action { |
|
87 | 87 | margin-left: -30px; |
|
88 | 88 | } |
|
89 | 89 | } |
|
90 | 90 | |
|
91 | 91 | .clone_url_input { |
|
92 | 92 | width: ~"calc(100% - 90px)"; |
|
93 | 93 | padding: 6px 30px 6px 10px; |
|
94 | 94 | height: 14px; |
|
95 | 95 | box-shadow: 0 1px 1px 0 rgba(0,0,0,0.07); |
|
96 | 96 | border-top-left-radius: 0; |
|
97 | 97 | border-bottom-left-radius: 0; |
|
98 | 98 | margin-left: -1px; |
|
99 | 99 | } |
|
100 | 100 | |
|
101 | 101 | &.directory { |
|
102 | 102 | margin-bottom: 0; |
|
103 | 103 | } |
|
104 | 104 | |
|
105 | 105 | .desc { |
|
106 | 106 | white-space: pre-wrap; |
|
107 | 107 | } |
|
108 | 108 | .disabled { |
|
109 | 109 | opacity: .5; |
|
110 | 110 | cursor: inherit; |
|
111 | 111 | } |
|
112 | 112 | .help-block { |
|
113 | 113 | color: inherit; |
|
114 | 114 | margin: 0; |
|
115 | 115 | } |
|
116 | 116 | } |
|
117 | 117 | |
|
118 | 118 | .sidebar-right { |
|
119 | 119 | float: left; |
|
120 | 120 | width: 24%; |
|
121 | 121 | margin: 0; |
|
122 | 122 | padding: 0; |
|
123 | 123 | |
|
124 | 124 | ul { |
|
125 | 125 | margin-left: 0; |
|
126 | 126 | padding-left: 0; |
|
127 | 127 | |
|
128 | 128 | li { |
|
129 | 129 | list-style-type: none; |
|
130 | 130 | } |
|
131 | 131 | } |
|
132 | 132 | } |
|
133 | 133 | |
|
134 | 134 | #clone_by_name, #clone_by_id{ |
|
135 | 135 | display: inline-block; |
|
136 | 136 | margin-left: 0px; |
|
137 | 137 | } |
|
138 | 138 | |
|
139 | 139 | .codeblock { |
|
140 | 140 | border: none; |
|
141 | 141 | background-color: transparent; |
|
142 | 142 | } |
|
143 | 143 | |
|
144 | 144 | .code-body { |
|
145 | 145 | border: @border-thickness solid @border-default-color; |
|
146 | 146 | .border-radius(@border-radius); |
|
147 | 147 | } |
|
148 | 148 | |
|
149 | 149 | .btn-collapse { |
|
150 | 150 | clear: both; |
|
151 | 151 | float: none; |
|
152 | 152 | background: #F7F7F7; |
|
153 | 153 | text-align: center; |
|
154 | 154 | color: #949494; |
|
155 | 155 | font-size: 11px; |
|
156 | 156 | |
|
157 | 157 | &:hover { |
|
158 | 158 | background: #f1f1f1; |
|
159 | 159 | color: #2B2B2D; |
|
160 | 160 | } |
|
161 | 161 | } |
|
162 | 162 | } |
|
163 | 163 | |
|
164 | 164 | // this is used outside of just the summary |
|
165 | 165 | .fieldset, // similar to form fieldset |
|
166 | 166 | .summary .sidebar-right-content { // these have to match |
|
167 | 167 | clear: both; |
|
168 | 168 | float: none; |
|
169 | 169 | position: relative; |
|
170 | 170 | display:block; |
|
171 | 171 | width: 100%; |
|
172 | 172 | min-height: 1em; |
|
173 | 173 | margin-bottom: 10px; |
|
174 | 174 | padding: 0; |
|
175 | 175 | line-height: 1.2em; |
|
176 | 176 | |
|
177 | 177 | &:after { // clearfix |
|
178 | 178 | content: ""; |
|
179 | 179 | clear: both; |
|
180 | 180 | width: 100%; |
|
181 | 181 | height: 1em; |
|
182 | 182 | } |
|
183 | 183 | } |
|
184 | 184 | |
|
185 | 185 | .summary .sidebar-right-content { |
|
186 |
margin-bottom: |
|
|
186 | margin-bottom: 0; | |
|
187 | 187 | |
|
188 | 188 | .rc-user { |
|
189 | 189 | min-width: 0; |
|
190 | 190 | } |
|
191 | ||
|
192 | li { | |
|
193 | list-style: none; | |
|
194 | line-height: normal; | |
|
195 | } | |
|
191 | 196 | } |
|
192 | 197 | |
|
193 | 198 | .summary { |
|
194 | 199 | .fieldset { |
|
195 | 200 | margin-bottom: 0; |
|
196 | 201 | } |
|
197 | 202 | } |
|
198 | 203 | |
|
199 | 204 | .fieldset { |
|
200 | 205 | |
|
201 | 206 | .left-label { // similar to form legend |
|
202 | 207 | display: block; |
|
203 | 208 | margin: 0; |
|
204 | 209 | padding: 0; |
|
205 | 210 | font-weight: @text-semibold-weight; |
|
206 | 211 | font-family: @text-semibold; |
|
207 | 212 | } |
|
208 | 213 | |
|
209 | 214 | .left-label-summary { |
|
210 | 215 | padding-left: 20px; |
|
211 | 216 | margin-bottom: 5px; |
|
212 | 217 | |
|
213 | 218 | p { |
|
214 | 219 | margin-bottom: 5px; |
|
215 | 220 | color: @grey1; |
|
216 | 221 | float: left; |
|
217 | 222 | width: 130px; |
|
218 | 223 | } |
|
219 | 224 | |
|
220 | 225 | .right-label-summary { |
|
221 | 226 | float: left; |
|
222 | 227 | margin-top: 7px; |
|
223 | 228 | } |
|
224 | 229 | } |
|
225 | 230 | |
|
226 | 231 | .left-content { |
|
227 | 232 | width: ~"calc(60% - 20px)"; |
|
228 | 233 | float: left; |
|
229 | 234 | margin: 15px 0 15px 20px; |
|
230 | 235 | |
|
231 | 236 | .rc-user { |
|
232 | 237 | min-width: auto; |
|
233 | 238 | max-width: none; |
|
234 | 239 | min-height: auto; |
|
235 | 240 | padding-right: 5px; |
|
236 | 241 | } |
|
237 | 242 | |
|
238 | 243 | .left-content-avatar { |
|
239 | 244 | width: 45px; |
|
240 | 245 | float: left; |
|
241 | 246 | margin-top: 8px; |
|
242 | 247 | } |
|
243 | 248 | |
|
244 | 249 | .left-content-message { |
|
245 | 250 | float: left; |
|
246 | 251 | width: ~"calc(100% - 45px)"; |
|
247 | 252 | } |
|
248 | 253 | } |
|
249 | 254 | |
|
250 | 255 | .right-content { // similar to form fields |
|
251 | 256 | float: left; |
|
252 | 257 | display: block; |
|
253 | 258 | width: ~"calc(40% - 20px)"; |
|
254 | 259 | text-align: right; |
|
255 | 260 | margin: 15px 20px 15px 0; |
|
256 | 261 | |
|
257 | 262 | .truncate-wrap, |
|
258 | 263 | .truncate { |
|
259 | 264 | max-width: 100%; |
|
260 | 265 | width: 100%; |
|
261 | 266 | } |
|
262 | 267 | |
|
263 | 268 | .commit-long { |
|
264 | 269 | overflow-x: auto; |
|
265 | 270 | } |
|
266 | 271 | |
|
267 | 272 | .commit-info { |
|
268 | 273 | margin-top: 7px; |
|
269 | 274 | } |
|
270 | 275 | |
|
271 | 276 | .tag, .tagtag, .branchtag, .booktag, .metatag, .perm_tag { |
|
272 | 277 | background:transparent; |
|
273 | 278 | border: none; |
|
274 | 279 | box-shadow: none; |
|
275 | 280 | margin-left: 10px; |
|
276 | 281 | font-size: 13px; |
|
277 | 282 | } |
|
278 | 283 | |
|
279 | 284 | .tag span, .tag i { |
|
280 | 285 | color: @grey1; |
|
281 | 286 | } |
|
282 | 287 | } |
|
283 | 288 | .commit { |
|
284 | 289 | color: @grey1; |
|
285 | 290 | margin-bottom: 5px; |
|
286 | 291 | white-space: pre; |
|
287 | 292 | } |
|
288 | 293 | .commit.truncate-wrap { |
|
289 | 294 | overflow:hidden; |
|
290 | 295 | text-overflow: ellipsis; |
|
291 | 296 | } |
|
292 | 297 | .commit-author { |
|
293 | 298 | color: @grey1; |
|
294 | 299 | } |
|
295 | 300 | .commit-date { |
|
296 | 301 | color: @grey4; |
|
297 | 302 | } |
|
298 | 303 | } |
|
299 | 304 | |
|
300 | 305 | // expand commit message |
|
301 | 306 | #message_expand { |
|
302 | 307 | clear: both; |
|
303 | 308 | display: block; |
|
304 | 309 | color: @rcblue; |
|
305 | 310 | cursor: pointer; |
|
306 | 311 | } |
|
307 | 312 | |
|
308 | 313 | #trimmed_message_box { |
|
309 | 314 | max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height |
|
310 | 315 | overflow: hidden; |
|
311 | 316 | } |
|
312 | 317 | |
|
313 | 318 | // show/hide comments button |
|
314 | 319 | .show-inline-comments { |
|
315 | 320 | display: inline; |
|
316 | 321 | cursor: pointer; |
|
317 | 322 | |
|
318 | 323 | .comments-show { display: inline; } |
|
319 | 324 | .comments-hide { display: none; } |
|
320 | 325 | |
|
321 | 326 | &.comments-visible { |
|
322 | 327 | .comments-show { display: none; } |
|
323 | 328 | .comments-hide { display: inline; } |
|
324 | 329 | } |
|
325 | 330 | } |
|
326 | 331 | |
|
327 | 332 | // Quick Start section |
|
328 | 333 | |
|
329 | 334 | .empty-repo { |
|
330 | 335 | border: 1px solid #EAEAEA; |
|
331 | 336 | border-bottom: 0; |
|
332 | 337 | border-radius: @border-radius; |
|
333 | 338 | padding: 0 20px; |
|
334 | 339 | } |
|
335 | 340 | |
|
336 | 341 | .empty-repo h3, .quick_start p { |
|
337 | 342 | margin-bottom: 10px; |
|
338 | 343 | } |
|
339 | 344 | |
|
340 | 345 | .quick_start pre { |
|
341 | 346 | background: #FCFEFF; |
|
342 | 347 | border: 1px solid #CBDBEB; |
|
343 | 348 | box-shadow: @button-shadow; |
|
344 | 349 | padding: 10px 15px; |
|
345 | 350 | border-radius: 4px; |
|
346 | 351 | color: @grey2; |
|
347 | 352 | } |
|
348 | 353 | |
|
349 | 354 | .clear-fix { |
|
350 | 355 | clear: both; |
|
351 | 356 | } |
|
352 | 357 | |
|
353 | 358 | .quick_start { |
|
354 | 359 | display: block; |
|
355 | 360 | position: relative; |
|
356 | 361 | border: 1px solid #EAEAEA; |
|
357 | 362 | border-top: 0; |
|
358 | 363 | border-radius: @border-radius; |
|
359 | 364 | padding: 0 20px; |
|
360 | 365 | |
|
361 | 366 | // adds some space to make copy and paste easier |
|
362 | 367 | .left-label, |
|
363 | 368 | .right-content { |
|
364 | 369 | line-height: 1.6em; |
|
365 | 370 | } |
|
366 | 371 | } |
|
367 | 372 | |
|
368 | 373 | |
|
369 | 374 | .submodule { |
|
370 | 375 | .summary-detail { |
|
371 | 376 | width: 100%; |
|
372 | 377 | |
|
373 | 378 | .btn-collapse { |
|
374 | 379 | display: none; |
|
375 | 380 | } |
|
376 | 381 | } |
|
377 | 382 | } |
|
378 | 383 | |
|
379 | 384 | .codeblock-header { |
|
380 | 385 | float: left; |
|
381 | 386 | display: block; |
|
382 | 387 | width: 100%; |
|
383 | 388 | margin: 0; |
|
384 | 389 | padding: @space 0 10px 0; |
|
385 | 390 | border-top: @border-thickness solid @border-default-color; |
|
386 | 391 | |
|
387 | 392 | .stats { |
|
388 | 393 | float: left; |
|
389 | 394 | } |
|
390 | 395 | .stats-filename { |
|
391 | 396 | font-size: 120%; |
|
392 | 397 | } |
|
393 | 398 | .stats-first-item { |
|
394 | 399 | padding: 0px 0px 0px 3px; |
|
395 | 400 | } |
|
396 | 401 | |
|
397 | 402 | .buttons { |
|
398 | 403 | float: right; |
|
399 | 404 | text-align: right; |
|
400 | 405 | color: @grey4; |
|
401 | 406 | } |
|
402 | 407 | |
|
403 | 408 | .file-container { |
|
404 | 409 | display: inline-block; |
|
405 | 410 | width: 100%; |
|
406 | 411 | } |
|
407 | 412 | |
|
408 | 413 | } |
|
409 | 414 | |
|
410 | 415 | #summary-menu-stats { |
|
411 | 416 | |
|
412 | 417 | .stats-bullet { |
|
413 | 418 | color: @grey3; |
|
414 | 419 | min-width: 3em; |
|
415 | 420 | } |
|
416 | 421 | |
|
417 | 422 | .repo-size { |
|
418 | 423 | margin-bottom: .5em; |
|
419 | 424 | } |
|
420 | 425 | |
|
421 | 426 | } |
|
422 | 427 | |
|
423 | 428 | .rctable.repo_summary { |
|
424 | 429 | border: 1px solid #eaeaea; |
|
425 | 430 | border-radius: 2px; |
|
426 | 431 | border-collapse: inherit; |
|
427 | 432 | border-bottom: 0; |
|
428 | 433 | |
|
429 | 434 | th { |
|
430 | 435 | background: @grey7; |
|
431 | 436 | border-bottom: 0; |
|
432 | 437 | } |
|
433 | 438 | |
|
434 | 439 | td { |
|
435 | 440 | border-color: #eaeaea; |
|
436 | 441 | } |
|
437 | 442 | |
|
438 | 443 | td.td-status { |
|
439 | 444 | padding: 0 0 0 10px; |
|
440 | 445 | } |
|
441 | 446 | } |
@@ -1,31 +1,30 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | 2 | |
|
3 | 3 | % if c.authors: |
|
4 | 4 | <ul class="sidebar-right-content"> |
|
5 | 5 | % for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]): |
|
6 | 6 | <li class="file_author"> |
|
7 | 7 | <div class="tooltip" title="${h.tooltip(h.author_string(email))}"> |
|
8 | ${base.gravatar(email, 16)} | |
|
9 | <div class="user">${h.link_to_user(user)}</div> | |
|
8 | <span class="user commit-author">${h.link_to_user(user)}</span> | |
|
10 | 9 | |
|
11 | 10 | % if c.file_author: |
|
12 | <span>- ${h.age_component(c.file_last_commit.date)}</span> | |
|
11 | <span class="commit-date">- ${h.age_component(c.file_last_commit.date)}</span> | |
|
13 | 12 | % elif c.file_last_commit.author_email==email: |
|
14 | 13 | <span> (${_('last author')})</span> |
|
15 | 14 | % endif |
|
16 | 15 | |
|
17 | 16 | % if not c.file_author: |
|
18 | 17 | <span> |
|
19 | 18 | % if commits == 1: |
|
20 | 19 | ${commits} ${_('Commit')} |
|
21 | 20 | % else: |
|
22 | 21 | ${commits} ${_('Commits')} |
|
23 | 22 | % endif |
|
24 | 23 | </span> |
|
25 | 24 | % endif |
|
26 | ||
|
27 | 25 | </div> |
|
28 | 26 | </li> |
|
29 | 27 | % endfor |
|
30 | 28 | </ul> |
|
31 | 29 | % endif |
|
30 | <a href="#" id="show_authors" class="action_link">${_('Show All')}</a> |
@@ -1,85 +1,82 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | 2 | <%namespace name="file_base" file="/files/base.mako"/> |
|
3 | 3 | |
|
4 | <div class="fieldset collapsable-content no-hide" data-toggle="summary-details"> | |
|
5 |
<div class=" |
|
|
6 | ${_('Commit Description')}: | |
|
7 | </div> | |
|
8 | <div class="commit right-content truncate-wrap">${h.urlify_commit_message(h.chop_at_smart(c.commit.message, '\n', suffix_if_chopped='...'), c.repo_name)}</div> | |
|
9 | </div> | |
|
4 | <div class="summary"> | |
|
5 | <div class="fieldset"> | |
|
6 | <div class="left-content"> | |
|
7 | ||
|
8 | <div class="left-content-avatar"> | |
|
9 | ${base.gravatar(c.file_last_commit.author_email, 30)} | |
|
10 | </div> | |
|
11 | ||
|
12 | <div class="left-content-message"> | |
|
13 | <div class="fieldset collapsable-content no-hide" data-toggle="summary-details"> | |
|
14 | <div class="commit truncate-wrap">${h.urlify_commit_message(h.chop_at_smart(c.commit.message, '\n', suffix_if_chopped='...'), c.repo_name)}</div> | |
|
15 | </div> | |
|
16 | ||
|
17 | <div class="fieldset collapsable-content" data-toggle="summary-details"> | |
|
18 | <div class="commit">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div> | |
|
19 | </div> | |
|
10 | 20 | |
|
11 |
<div class="fieldset |
|
|
12 | <div class="left-label"> | |
|
13 | ${_('Commit Description')}: | |
|
14 | </div> | |
|
15 | <div class="commit right-content">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div> | |
|
16 | </div> | |
|
21 | <div class="fieldset" data-toggle="summary-details"> | |
|
22 | <div class="" id="file_authors"> | |
|
23 | ## loads single author, or ALL | |
|
24 | <%include file='file_authors_box.mako'/> | |
|
25 | </div> | |
|
26 | </div> | |
|
27 | </div> | |
|
28 | ||
|
29 | <div class="fieldset collapsable-content" data-toggle="summary-details"> | |
|
30 | <div class=""> | |
|
31 | <div class="tags"> | |
|
32 | ${_('File last commit')} | |
|
33 | <code><a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.file_last_commit.raw_id)}">${h.show_id(c.file_last_commit)}</a></code> | |
|
34 | ||
|
35 | ${file_base.refs(c.file_last_commit)} | |
|
36 | </div> | |
|
37 | </div> | |
|
38 | </div> | |
|
17 | 39 | |
|
18 | 40 | |
|
19 | <div class="fieldset " data-toggle="summary-details"> | |
|
20 |
<div class=" |
|
|
21 | ${_('References')}: | |
|
22 | </div> | |
|
23 | <div class="right-content"> | |
|
24 | <div class="tags tags-main"> | |
|
25 | <code><a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.commit.raw_id)}">${h.show_id(c.commit)}</a></code> | |
|
26 | ${file_base.refs(c.commit)} | |
|
41 | <div class="fieldset collapsable-content" data-toggle="summary-details"> | |
|
42 | <div class=""> | |
|
43 | ${_('Show/Diff file')} | |
|
44 | ${h.hidden('diff1')} | |
|
45 | ${h.hidden('diff2',c.commit.raw_id)} | |
|
46 | ${h.hidden('annotate', c.annotate)} | |
|
47 | </div> | |
|
48 | </div> | |
|
49 | ||
|
50 | ||
|
51 | <div class="fieldset collapsable-content" data-toggle="summary-details"> | |
|
52 | <div class=""> | |
|
53 | ${_('Action')}: | |
|
54 | </div> | |
|
55 | <div class=""> | |
|
56 | ${h.submit('diff_to_commit',_('Diff to Commit'),class_="btn disabled",disabled="true")} | |
|
57 | ${h.submit('show_at_commit',_('Show at Commit'),class_="btn disabled",disabled="true")} | |
|
58 | </div> | |
|
59 | </div> | |
|
27 | 60 | </div> |
|
28 | </div> | |
|
29 | </div> | |
|
30 | 61 | |
|
31 | <div class="fieldset collapsable-content" data-toggle="summary-details"> | |
|
32 | <div class="left-label"> | |
|
33 | ${_('File last commit')}: | |
|
34 | </div> | |
|
35 | <div class="right-content"> | |
|
36 | <div class="tags"> | |
|
37 | <code><a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.file_last_commit.raw_id)}">${h.show_id(c.file_last_commit)}</a></code> | |
|
62 | <div class="right-content"> | |
|
63 | <div data-toggle="summary-details"> | |
|
64 | <div class="tags commit-info tags-main"> | |
|
65 | <code><a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.commit.raw_id)}">${h.show_id(c.commit)}</a></code> | |
|
66 | ${file_base.refs(c.commit)} | |
|
67 | </div> | |
|
68 | </div> | |
|
69 | </div> | |
|
38 | 70 | |
|
39 | ${file_base.refs(c.file_last_commit)} | |
|
71 | <div class="clear-fix"></div> | |
|
72 | ||
|
73 | <div class="btn-collapse" data-toggle="summary-details"> | |
|
74 | ${_('Show More')} | |
|
40 | 75 | </div> |
|
76 | ||
|
41 | 77 | </div> |
|
42 | 78 | </div> |
|
43 | 79 | |
|
44 | ||
|
45 | <div class="fieldset collapsable-content" data-toggle="summary-details"> | |
|
46 | <div class="left-label"> | |
|
47 | ${_('Show/Diff file')}: | |
|
48 | </div> | |
|
49 | <div class="right-content"> | |
|
50 | ${h.hidden('diff1')} | |
|
51 | ${h.hidden('diff2',c.commit.raw_id)} | |
|
52 | ${h.hidden('annotate', c.annotate)} | |
|
53 | </div> | |
|
54 | </div> | |
|
55 | ||
|
56 | ||
|
57 | <div class="fieldset collapsable-content" data-toggle="summary-details"> | |
|
58 | <div class="left-label"> | |
|
59 | ${_('Action')}: | |
|
60 | </div> | |
|
61 | <div class="right-content"> | |
|
62 | ${h.submit('diff_to_commit',_('Diff to Commit'),class_="btn disabled",disabled="true")} | |
|
63 | ${h.submit('show_at_commit',_('Show at Commit'),class_="btn disabled",disabled="true")} | |
|
64 | </div> | |
|
65 | </div> | |
|
66 | ||
|
67 | <div class="fieldset collapsable-content" data-toggle="summary-details"> | |
|
68 | <div class="left-label" id="file_authors_title"> | |
|
69 | % if c.file_author: | |
|
70 | ${_('Last Author')} | |
|
71 | % else: | |
|
72 | ${h.literal(_ungettext(u'File Author (%s)',u'File Authors (%s)',len(c.authors)) % ('<b>%s</b>' % len(c.authors))) } | |
|
73 | % endif | |
|
74 | <a href="#" id="show_authors" class="action_link">${_('Show All')}</a> | |
|
75 | </div> | |
|
76 | <div class="right-content" id="file_authors"> | |
|
77 | ## loads single author, or ALL | |
|
78 | <%include file='file_authors_box.mako'/> | |
|
79 | </div> | |
|
80 | </div> | |
|
81 | ||
|
82 | ||
|
83 | 80 | <script> |
|
84 | 81 | collapsableContent(); |
|
85 | 82 | </script> |
@@ -1,46 +1,46 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | 2 | <%namespace name="file_base" file="/files/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | <div class="summary"> |
|
5 | 5 | <div class="fieldset"> |
|
6 | 6 | <div class="left-content"> |
|
7 | 7 | |
|
8 | 8 | <div class="left-content-avatar"> |
|
9 | 9 | ${base.gravatar(c.commit.author, 30)} |
|
10 | 10 | </div> |
|
11 | 11 | |
|
12 | 12 | <div class="left-content-message"> |
|
13 | 13 | <div class="fieldset collapsable-content no-hide" data-toggle="summary-details"> |
|
14 | 14 | <div class="commit truncate-wrap">${h.urlify_commit_message(h.chop_at_smart(c.commit.message, '\n', suffix_if_chopped='...'), c.repo_name)}</div> |
|
15 | 15 | </div> |
|
16 | 16 | |
|
17 | 17 | <div class="fieldset collapsable-content" data-toggle="summary-details"> |
|
18 | 18 | <div class="commit">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div> |
|
19 | 19 | </div> |
|
20 | 20 | |
|
21 | 21 | <div class="clear-fix"> |
|
22 | <span class="commit-author">${h.link_to_user(c.commit.author)}</span><span class="commit-date">-${h.age_component(c.commit.date)}</span> | |
|
22 | <span class="commit-author">${h.link_to_user(c.commit.author)}</span><span class="commit-date"> - ${h.age_component(c.commit.date)}</span> | |
|
23 | 23 | </div> |
|
24 | 24 | </div> |
|
25 | 25 | </div> |
|
26 | 26 | |
|
27 | 27 | <div class="right-content"> |
|
28 | 28 | <div class="tags commit-info"> |
|
29 | 29 | <code> |
|
30 | 30 | <a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.commit.raw_id)}">${h.show_id(c.commit)}</a> |
|
31 | 31 | </code> |
|
32 | 32 | |
|
33 | 33 | ${file_base.refs(c.commit)} |
|
34 | 34 | </div> |
|
35 | 35 | </div> |
|
36 | <div class="clear-fix"> | |
|
37 | </div> | |
|
36 | ||
|
37 | <div class="clear-fix"></div> | |
|
38 | 38 | |
|
39 | ||
|
40 | <div class="btn-collapse" data-toggle="summary-details"> | |
|
41 | ${_('Show More')} | |
|
39 | <div class="btn-collapse" data-toggle="summary-details"> | |
|
40 | ${_('Show More')} | |
|
41 | </div> | |
|
42 | 42 | </div> |
|
43 | 43 | </div> |
|
44 | 44 | <script> |
|
45 | 45 | collapsableContent(); |
|
46 | 46 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now