Show More
@@ -167,6 +167,11 b'' | |||
|
167 | 167 | padding: 0; |
|
168 | 168 | font-family: @text-semibold; |
|
169 | 169 | } |
|
170 | ||
|
171 | .left-label-summary { | |
|
172 | .left-label; | |
|
173 | width: 150px; | |
|
174 | } | |
|
170 | 175 | |
|
171 | 176 | .right-content { // similar to form fields |
|
172 | 177 | float: left; |
@@ -84,7 +84,56 b'' | |||
|
84 | 84 | </div> |
|
85 | 85 | |
|
86 | 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 | 137 | ${_('Description')}: |
|
89 | 138 | </div> |
|
90 | 139 | <div class="right-content"> |
@@ -95,81 +144,9 b'' | |||
|
95 | 144 | </div> |
|
96 | 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 | 147 | % if show_downloads: |
|
171 | 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 | 150 | ${_('Downloads')}: |
|
174 | 151 | </div> |
|
175 | 152 | <div class="right-content"> |
@@ -180,10 +157,10 b'' | |||
|
180 | 157 | </span> |
|
181 | 158 | % elif not c.enable_downloads: |
|
182 | 159 | <span class="disabled"> |
|
183 | ${_('Downloads are disabled for this repository')} | |
|
160 | ${_('Downloads are disabled for this repository')}. | |
|
184 | 161 | </span> |
|
185 | 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 | 164 | % endif |
|
188 | 165 | % else: |
|
189 | 166 | <span class="enabled"> |
@@ -199,6 +176,30 b'' | |||
|
199 | 176 | </div> |
|
200 | 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 | 203 | </div><!--end summary-detail--> |
|
203 | 204 | </%def> |
|
204 | 205 |
@@ -45,7 +45,10 b'' | |||
|
45 | 45 | %endif |
|
46 | 46 | </td> |
|
47 | 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 | 52 | </td> |
|
50 | 53 | |
|
51 | 54 | <td class="td-description mid"> |
General Comments 0
You need to be logged in to leave comments.
Login now