Show More
@@ -167,6 +167,11 b'' | |||||
167 | padding: 0; |
|
167 | padding: 0; | |
168 | font-family: @text-semibold; |
|
168 | font-family: @text-semibold; | |
169 | } |
|
169 | } | |
|
170 | ||||
|
171 | .left-label-summary { | |||
|
172 | .left-label; | |||
|
173 | width: 150px; | |||
|
174 | } | |||
170 |
|
175 | |||
171 | .right-content { // similar to form fields |
|
176 | .right-content { // similar to form fields | |
172 | float: left; |
|
177 | float: left; |
@@ -84,7 +84,56 b'' | |||||
84 | </div> |
|
84 | </div> | |
85 |
|
85 | |||
86 | <div class="fieldset collapsable-content" data-toggle="summary-details" style="display: none;"> |
|
86 | <div class="fieldset collapsable-content" data-toggle="summary-details" style="display: none;"> | |
87 | <div class="left-label"> |
|
87 | <div class="left-label-summary"> | |
|
88 | ${_('Information')}: | |||
|
89 | </div> | |||
|
90 | <div class="right-content"> | |||
|
91 | <div class="commit-info"> | |||
|
92 | <div class="tags"> | |||
|
93 | <% commit_rev = c.rhodecode_db_repo.changeset_cache.get('revision') %> | |||
|
94 | % if c.rhodecode_repo: | |||
|
95 | ${refs_counters( | |||
|
96 | c.rhodecode_repo.branches, | |||
|
97 | c.rhodecode_repo.branches_closed, | |||
|
98 | c.rhodecode_repo.tags, | |||
|
99 | c.rhodecode_repo.bookmarks)} | |||
|
100 | % else: | |||
|
101 | ## missing requirements can make c.rhodecode_repo None | |||
|
102 | ${refs_counters([], [], [], [])} | |||
|
103 | % endif | |||
|
104 | ||||
|
105 | ## commits | |||
|
106 | <span class="tag"> | |||
|
107 | % if commit_rev == -1: | |||
|
108 | ${_ungettext('%(num)s Commit', '%(num)s Commits', 0) % {'num': 0}}, | |||
|
109 | % else: | |||
|
110 | <a href="${h.route_path('repo_changelog', repo_name=c.repo_name)}"> | |||
|
111 | ${_ungettext('%(num)s Commit', '%(num)s Commits', commit_rev) % {'num': commit_rev}}</a>, | |||
|
112 | % endif | |||
|
113 | </span> | |||
|
114 | ||||
|
115 | ## forks | |||
|
116 | <span class="tag"> | |||
|
117 | <a title="${_('Number of Repository Forks')}" href="${h.route_path('repo_forks_show_all', repo_name=c.repo_name)}"> | |||
|
118 | ${c.repository_forks} ${_ungettext('Fork', 'Forks', c.repository_forks)}</a>, | |||
|
119 | </span> | |||
|
120 | ||||
|
121 | ## repo size | |||
|
122 | % if commit_rev == -1: | |||
|
123 | <span class="stats-bullet">0 B</span> | |||
|
124 | % else: | |||
|
125 | <span class="stats-bullet" id="repo_size_container"> | |||
|
126 | ${_('Calculating Repository Size...')} | |||
|
127 | </span> | |||
|
128 | % endif | |||
|
129 | ||||
|
130 | </div> | |||
|
131 | </div> | |||
|
132 | </div> | |||
|
133 | </div> | |||
|
134 | ||||
|
135 | <div class="fieldset collapsable-content" data-toggle="summary-details" style="display: none;"> | |||
|
136 | <div class="left-label-summary"> | |||
88 | ${_('Description')}: |
|
137 | ${_('Description')}: | |
89 | </div> |
|
138 | </div> | |
90 | <div class="right-content"> |
|
139 | <div class="right-content"> | |
@@ -95,81 +144,9 b'' | |||||
95 | </div> |
|
144 | </div> | |
96 | </div> |
|
145 | </div> | |
97 |
|
146 | |||
98 | <div class="fieldset collapsable-content" data-toggle="summary-details" style="display: none;"> |
|
|||
99 | <div class="left-label"> |
|
|||
100 | ${_('Information')}: |
|
|||
101 | </div> |
|
|||
102 | <div class="right-content"> |
|
|||
103 |
|
||||
104 | <div class="repo-size"> |
|
|||
105 | <% commit_rev = c.rhodecode_db_repo.changeset_cache.get('revision') %> |
|
|||
106 |
|
||||
107 | ## commits |
|
|||
108 | % if commit_rev == -1: |
|
|||
109 | ${_ungettext('%(num)s Commit', '%(num)s Commits', 0) % {'num': 0}}, |
|
|||
110 | % else: |
|
|||
111 | <a href="${h.route_path('repo_changelog', repo_name=c.repo_name)}"> |
|
|||
112 | ${_ungettext('%(num)s Commit', '%(num)s Commits', commit_rev) % {'num': commit_rev}}</a>, |
|
|||
113 | % endif |
|
|||
114 |
|
||||
115 | ## forks |
|
|||
116 | <a title="${_('Number of Repository Forks')}" href="${h.route_path('repo_forks_show_all', repo_name=c.repo_name)}"> |
|
|||
117 | ${c.repository_forks} ${_ungettext('Fork', 'Forks', c.repository_forks)}</a>, |
|
|||
118 |
|
||||
119 | ## repo size |
|
|||
120 | % if commit_rev == -1: |
|
|||
121 | <span class="stats-bullet">0 B</span> |
|
|||
122 | % else: |
|
|||
123 | <span class="stats-bullet" id="repo_size_container"> |
|
|||
124 | ${_('Calculating Repository Size...')} |
|
|||
125 | </span> |
|
|||
126 | % endif |
|
|||
127 | </div> |
|
|||
128 |
|
||||
129 | <div class="commit-info"> |
|
|||
130 | <div class="tags"> |
|
|||
131 | % if c.rhodecode_repo: |
|
|||
132 | ${refs_counters( |
|
|||
133 | c.rhodecode_repo.branches, |
|
|||
134 | c.rhodecode_repo.branches_closed, |
|
|||
135 | c.rhodecode_repo.tags, |
|
|||
136 | c.rhodecode_repo.bookmarks)} |
|
|||
137 | % else: |
|
|||
138 | ## missing requirements can make c.rhodecode_repo None |
|
|||
139 | ${refs_counters([], [], [], [])} |
|
|||
140 | % endif |
|
|||
141 | </div> |
|
|||
142 | </div> |
|
|||
143 |
|
||||
144 | </div> |
|
|||
145 | </div> |
|
|||
146 |
|
||||
147 | <div class="fieldset collapsable-content" data-toggle="summary-details" style="display: none;"> |
|
|||
148 | <div class="left-label"> |
|
|||
149 | ${_('Statistics')}: |
|
|||
150 | </div> |
|
|||
151 | <div class="right-content"> |
|
|||
152 | <div class="input ${summary(c.show_stats)} statistics"> |
|
|||
153 | % if c.show_stats: |
|
|||
154 | <div id="lang_stats" class="enabled"> |
|
|||
155 | ${_('Calculating Code Statistics...')} |
|
|||
156 | </div> |
|
|||
157 | % else: |
|
|||
158 | <span class="disabled"> |
|
|||
159 | ${_('Statistics are disabled for this repository')} |
|
|||
160 | </span> |
|
|||
161 | % if h.HasPermissionAll('hg.admin')('enable stats on from summary'): |
|
|||
162 | , ${h.link_to(_('enable statistics'),h.route_path('edit_repo',repo_name=c.repo_name, _anchor='repo_enable_statistics'))} |
|
|||
163 | % endif |
|
|||
164 | % endif |
|
|||
165 | </div> |
|
|||
166 |
|
||||
167 | </div> |
|
|||
168 | </div> |
|
|||
169 |
|
||||
170 | % if show_downloads: |
|
147 | % if show_downloads: | |
171 | <div class="fieldset collapsable-content" data-toggle="summary-details" style="display: none;"> |
|
148 | <div class="fieldset collapsable-content" data-toggle="summary-details" style="display: none;"> | |
172 | <div class="left-label"> |
|
149 | <div class="left-label-summary"> | |
173 | ${_('Downloads')}: |
|
150 | ${_('Downloads')}: | |
174 | </div> |
|
151 | </div> | |
175 | <div class="right-content"> |
|
152 | <div class="right-content"> | |
@@ -180,10 +157,10 b'' | |||||
180 | </span> |
|
157 | </span> | |
181 | % elif not c.enable_downloads: |
|
158 | % elif not c.enable_downloads: | |
182 | <span class="disabled"> |
|
159 | <span class="disabled"> | |
183 | ${_('Downloads are disabled for this repository')} |
|
160 | ${_('Downloads are disabled for this repository')}. | |
184 | </span> |
|
161 | </span> | |
185 | % if h.HasPermissionAll('hg.admin')('enable downloads on from summary'): |
|
162 | % if h.HasPermissionAll('hg.admin')('enable downloads on from summary'): | |
186 |
|
|
163 | ${h.link_to(_('Enable downloads'),h.route_path('edit_repo',repo_name=c.repo_name, _anchor='repo_enable_downloads'))} | |
187 | % endif |
|
164 | % endif | |
188 | % else: |
|
165 | % else: | |
189 | <span class="enabled"> |
|
166 | <span class="enabled"> | |
@@ -199,6 +176,30 b'' | |||||
199 | </div> |
|
176 | </div> | |
200 | % endif |
|
177 | % endif | |
201 |
|
178 | |||
|
179 | ## Statistics | |||
|
180 | <div class="fieldset collapsable-content" data-toggle="summary-details" style="display: none;"> | |||
|
181 | <div class="left-label-summary"> | |||
|
182 | ${_('Statistics')}: | |||
|
183 | </div> | |||
|
184 | <div class="right-content"> | |||
|
185 | <div class="input ${summary(c.show_stats)} statistics"> | |||
|
186 | % if c.show_stats: | |||
|
187 | <div id="lang_stats" class="enabled"> | |||
|
188 | ${_('Calculating Code Statistics...')} | |||
|
189 | </div> | |||
|
190 | % else: | |||
|
191 | <span class="disabled"> | |||
|
192 | ${_('Statistics are disabled for this repository')}. | |||
|
193 | </span> | |||
|
194 | % if h.HasPermissionAll('hg.admin')('enable stats on from summary'): | |||
|
195 | ${h.link_to(_('Enable statistics'),h.route_path('edit_repo',repo_name=c.repo_name, _anchor='repo_enable_statistics'))} | |||
|
196 | % endif | |||
|
197 | % endif | |||
|
198 | </div> | |||
|
199 | ||||
|
200 | </div> | |||
|
201 | </div> | |||
|
202 | ||||
202 | </div><!--end summary-detail--> |
|
203 | </div><!--end summary-detail--> | |
203 | </%def> |
|
204 | </%def> | |
204 |
|
205 |
@@ -45,7 +45,10 b'' | |||||
45 | %endif |
|
45 | %endif | |
46 | </td> |
|
46 | </td> | |
47 | <td class="td-commit"> |
|
47 | <td class="td-commit"> | |
48 | <pre><a href="${h.route_path('repo_commit', repo_name=c.repo_name, commit_id=cs.raw_id)}">${h.show_id(cs)}</a></pre> |
|
48 | <code> | |
|
49 | <a href="${h.route_path('repo_commit', repo_name=c.repo_name, commit_id=cs.raw_id)}">${h.show_id(cs)}</a> | |||
|
50 | <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${cs.raw_id}" title="${_('Copy the full commit id')}"></i> | |||
|
51 | </code> | |||
49 | </td> |
|
52 | </td> | |
50 |
|
53 | |||
51 | <td class="td-description mid"> |
|
54 | <td class="td-description mid"> |
General Comments 0
You need to be logged in to leave comments.
Login now