##// END OF EJS Templates
files: restructure the files views for easier restyling
marcink -
r3648:4b120ff6 new-ui
parent child Browse files
Show More
@@ -1,16 +1,5 b''
1 <%namespace name="base" file="/base/base.mako"/>
1 <%namespace name="base" file="/base/base.mako"/>
2
2
3 <div class="summary-detail-header">
4 <h4 class="item">
5 % if c.file_author:
6 ${_('Last Author')}
7 % else:
8 ${h.literal(_ungettext(u'File Author (%s)',u'File Authors (%s)',len(c.authors)) % ('<b>%s</b>' % len(c.authors))) }
9 % endif
10 </h4>
11 <a href="#" id="show_authors" class="action_link">${_('Show All')}</a>
12 </div>
13
14 % if c.authors:
3 % if c.authors:
15 <ul class="sidebar-right-content">
4 <ul class="sidebar-right-content">
16 % for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]):
5 % for email, user, commits in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]):
@@ -205,6 +205,7 b''
205 timeout: pjaxTimeout
205 timeout: pjaxTimeout
206 }).complete(function(){
206 }).complete(function(){
207 $('#show_authors').hide();
207 $('#show_authors').hide();
208 $('#file_authors_title').html(_gettext('All Authors'))
208 })
209 })
209 });
210 });
210
211
@@ -1,7 +1,7 b''
1 <%def name="title(*args)">
1 <%def name="title(*args)">
2 ${_('%s Files') % c.repo_name}
2 ${_('{} Files').format(c.repo_name)}
3 %if hasattr(c,'file'):
3 %if hasattr(c,'file'):
4 &middot; ${h.safe_unicode(c.file.path) or '\\'}
4 &middot; ${(h.safe_unicode(c.file.path) or '\\')}
5 %endif
5 %endif
6
6
7 %if c.rhodecode_name:
7 %if c.rhodecode_name:
@@ -10,6 +10,11 b''
10 </%def>
10 </%def>
11
11
12 <div id="pjax-content" data-title="${self.title()}">
12 <div id="pjax-content" data-title="${self.title()}">
13 <script>
14 // set the pageSource variable
15 var fileSourcePage = ${c.file_source_page};
16 </script>
17
13 <div class="summary-detail">
18 <div class="summary-detail">
14 <div class="summary-detail-header">
19 <div class="summary-detail-header">
15 <div class="breadcrumbs files_location">
20 <div class="breadcrumbs files_location">
@@ -28,28 +33,17 b''
28 % if c.file.is_submodule():
33 % if c.file.is_submodule():
29 <span class="submodule-dir">Submodule ${h.escape(c.file.name)}</span>
34 <span class="submodule-dir">Submodule ${h.escape(c.file.name)}</span>
30 % elif c.file.is_dir():
35 % elif c.file.is_dir():
31 <%include file='file_tree_detail.mako'/>
36 <%include file='files_tree_header.mako'/>
32 % else:
37 % else:
33 <%include file='files_detail.mako'/>
38 <%include file='files_source_header.mako'/>
34 % endif
39 % endif
35
40
36 </div> <!--end summary-detail-->
41 </div> <!--end summary-detail-->
37 <script>
42
38 // set the pageSource variable
39 var fileSourcePage = ${c.file_source_page};
40 </script>
41 % if c.file.is_dir():
43 % if c.file.is_dir():
42 <div id="commit-stats" class="sidebar-right">
43 <%include file='file_tree_author_box.mako'/>
44 </div>
45
46 <%include file='files_browser.mako'/>
44 <%include file='files_browser.mako'/>
47 % else:
45 % else:
48 <div id="file_authors" class="sidebar-right">
49 <%include file='file_authors_box.mako'/>
50 </div>
51
52 <%include file='files_source.mako'/>
46 <%include file='files_source.mako'/>
53 % endif
47 % endif
54
48
55 </div> No newline at end of file
49 </div>
@@ -1,3 +1,4 b''
1 <%namespace name="base" file="/base/base.mako"/>
1 <%namespace name="file_base" file="/files/base.mako"/>
2 <%namespace name="file_base" file="/files/base.mako"/>
2
3
3 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
4 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
@@ -63,7 +64,22 b''
63 </div>
64 </div>
64 </div>
65 </div>
65
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
66
82
67 <script>
83 <script>
68 collapsableContent();
84 collapsableContent();
69 </script> No newline at end of file
85 </script>
@@ -1,3 +1,4 b''
1 <%namespace name="base" file="/base/base.mako"/>
1 <%namespace name="file_base" file="/files/base.mako"/>
2 <%namespace name="file_base" file="/files/base.mako"/>
2
3
3 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
4 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
@@ -14,8 +15,6 b''
14 <div class="commit right-content">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div>
15 <div class="commit right-content">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div>
15 </div>
16 </div>
16
17
17
18
19 <div class="fieldset">
18 <div class="fieldset">
20 <div class="left-label">
19 <div class="left-label">
21 ${_('References')}:
20 ${_('References')}:
@@ -31,6 +30,15 b''
31 </div>
30 </div>
32 </div>
31 </div>
33
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>
34
42
35 <script>
43 <script>
36 collapsableContent();
44 collapsableContent();
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now