##// END OF EJS Templates
styled the files summary box
Liviu -
r3649:cfc40d78 new-ui
parent child Browse files
Show More
@@ -15,7 +15,6 b''
15 margin-bottom: 20px;
15 margin-bottom: 20px;
16
16
17 .summary-detail-header {
17 .summary-detail-header {
18 float: left;
19 display: block;
18 display: block;
20 width: 100%;
19 width: 100%;
21 margin-bottom: @textmargin;
20 margin-bottom: @textmargin;
@@ -23,13 +22,12 b''
23 border-bottom: @border-thickness solid @border-default-color;
22 border-bottom: @border-thickness solid @border-default-color;
24
23
25 .breadcrumbs {
24 .breadcrumbs {
26 float: left;
27 display: inline;
25 display: inline;
28 margin: 0;
26 margin: 0;
29 padding: 0;
27 padding: 0;
30 }
28 }
29
31 h4 {
30 h4 {
32 float: left;
33 margin: 0 1em 0 0;
31 margin: 0 1em 0 0;
34 padding: 0;
32 padding: 0;
35 line-height: 1.2em;
33 line-height: 1.2em;
@@ -192,6 +190,12 b''
192 }
190 }
193 }
191 }
194
192
193 .summary {
194 .fieldset {
195 margin-bottom: 0;
196 }
197 }
198
195 .fieldset {
199 .fieldset {
196
200
197 .left-label { // similar to form legend
201 .left-label { // similar to form legend
@@ -223,6 +227,13 b''
223 width: ~"calc(50% - 20px)";
227 width: ~"calc(50% - 20px)";
224 float: left;
228 float: left;
225 margin: 15px 0 15px 20px;
229 margin: 15px 0 15px 20px;
230
231 .rc-user {
232 min-width: auto;
233 max-width: none;
234 min-height: auto;
235 padding-right: 5px;
236 }
226 }
237 }
227
238
228 .right-content { // similar to form fields
239 .right-content { // similar to form fields
@@ -258,6 +269,10 b''
258 color: @grey1;
269 color: @grey1;
259 }
270 }
260 }
271 }
272 .commit {
273 color: @grey1;
274 margin-bottom: 10px;
275 }
261 .commit.truncate-wrap {
276 .commit.truncate-wrap {
262 overflow:hidden;
277 overflow:hidden;
263 text-overflow: ellipsis;
278 text-overflow: ellipsis;
@@ -46,6 +46,11 b' h6, .h6 { font-size: 1em; font-weight'
46 .breadcrumbs {
46 .breadcrumbs {
47 font-size: @repo-title-fontsize;
47 font-size: @repo-title-fontsize;
48 margin: 0;
48 margin: 0;
49
50 h4 {
51 font-size: @basefontsize;
52 margin-bottom: 15px;
53 }
49 }
54 }
50
55
51 .breadcrumbs_light {
56 .breadcrumbs_light {
@@ -27,7 +27,7 b''
27 </%def>
27 </%def>
28
28
29 <%def name="main()">
29 <%def name="main()">
30 <div id="pjax-container" class="summary">
30 <div id="pjax-container">
31 <div id="files_data">
31 <div id="files_data">
32 <%include file='files_pjax.mako'/>
32 <%include file='files_pjax.mako'/>
33 </div>
33 </div>
@@ -19,15 +19,12 b''
19 <div class="summary-detail-header">
19 <div class="summary-detail-header">
20 <div class="breadcrumbs files_location">
20 <div class="breadcrumbs files_location">
21 <h4>
21 <h4>
22 ${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path)}
22 ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path)}
23 %if c.annotate:
23 %if c.annotate:
24 - ${_('annotation')}
24 - ${_('annotation')}
25 %endif
25 %endif
26 </h4>
26 </h4>
27 </div>
27 </div>
28 <div class="btn-collapse" data-toggle="summary-details">
29 ${_('Show More')}
30 </div>
31 </div><!--end summary-detail-header-->
28 </div><!--end summary-detail-header-->
32
29
33 % if c.file.is_submodule():
30 % if c.file.is_submodule():
@@ -1,45 +1,37 b''
1 <%namespace name="base" file="/base/base.mako"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 <%namespace name="file_base" file="/files/base.mako"/>
2 <%namespace name="file_base" file="/files/base.mako"/>
3
3
4 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
4 <div class="summary">
5 <div class="left-label">
5 <div class="fieldset">
6 ${_('Description')}:
6 <div class="left-content">
7 </div>
7 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
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>
8 <div class="commit truncate-wrap">${h.urlify_commit_message(h.chop_at_smart(c.commit.message, '\n', suffix_if_chopped='...'), c.repo_name)}</div>
9 </div>
9 </div>
10
11 <div class="fieldset collapsable-content" data-toggle="summary-details">
12 <div class="commit">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div>
13 </div>
10
14
11 <div class="fieldset collapsable-content" data-toggle="summary-details">
15 <div class="clear-fix">${base.gravatar_with_user(c.commit.author)}-${h.age_component(c.commit.date)}</div>
12 <div class="left-label">
16 </div>
13 ${_('Description')}:
17
18 <div class="right-content">
19 <div class="tags commit-info">
20 <code>
21 <a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.commit.raw_id)}">${h.show_id(c.commit)}</a>
22 </code>
23
24 ${file_base.refs(c.commit)}
25 </div>
26 </div>
27 <div class="clear-fix">
14 </div>
28 </div>
15 <div class="commit right-content">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div>
29
16 </div>
17
30
18 <div class="fieldset">
31 <div class="btn-collapse" data-toggle="summary-details">
19 <div class="left-label">
32 ${_('Show More')}
20 ${_('References')}:
21 </div>
22 <div class="right-content">
23 <div class="tags">
24 <code>
25 <a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.commit.raw_id)}">${h.show_id(c.commit)}</a>
26 </code>
27
28 ${file_base.refs(c.commit)}
29 </div>
30 </div>
33 </div>
31 </div>
34 </div>
32
33 <div class="fieldset">
34 <div class="left-label">
35 ${_('Commit Author')}:
36 </div>
37 <div class="right-content">
38 ${base.gravatar_with_user(c.commit.author)}
39 <div class="user-inline-data">- ${h.age_component(c.commit.date)}</div>
40 </div>
41 </div>
42
43 <script>
35 <script>
44 collapsableContent();
36 collapsableContent();
45 </script>
37 </script>
General Comments 0
You need to be logged in to leave comments. Login now