Mercurial > kallithea
comparison rhodecode/templates/admin/repos/repo_edit.html @ 1755:1088ded6e602 beta
implements #239 manual marking of repos as forks for admins
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 05 Dec 2011 03:29:05 +0200 |
parents | aaec08ad9daf |
children | f91d3f9b7230 |
comparison
equal
deleted
inserted
replaced
1754:d0effbe1acb1 | 1755:1088ded6e602 |
---|---|
129 | 129 |
130 <h3>${_('Statistics')}</h3> | 130 <h3>${_('Statistics')}</h3> |
131 ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} | 131 ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} |
132 <div class="form"> | 132 <div class="form"> |
133 <div class="fields"> | 133 <div class="fields"> |
134 ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="refresh_icon action_button",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")} | 134 ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")} |
135 <div class="field" style="border:none"> | 135 <div class="field" style="border:none;color:#888"> |
136 <ul> | 136 <ul> |
137 <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li> | 137 <li>${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}</li> |
138 <li>${_('Percentage of stats gathered')}: ${c.stats_percentage} %</li> | 138 <li>${_('Percentage of stats gathered')}: ${c.stats_percentage} %</li> |
139 </ul> | 139 </ul> |
140 </div> | 140 </div> |
141 | |
142 </div> | 141 </div> |
143 </div> | 142 </div> |
144 ${h.end_form()} | 143 ${h.end_form()} |
145 | 144 |
146 %if c.repo_info.clone_uri: | 145 %if c.repo_info.clone_uri: |
147 <h3>${_('Remote')}</h3> | 146 <h3>${_('Remote')}</h3> |
148 ${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')} | 147 ${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')} |
149 <div class="form"> | 148 <div class="form"> |
150 <div class="fields"> | 149 <div class="fields"> |
151 ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="pull_icon action_button",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} | 150 ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="ui-btn",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} |
152 <div class="field" style="border:none"> | 151 <div class="field" style="border:none"> |
153 <ul> | 152 <ul> |
154 <li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li> | 153 <li><a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri}</a></li> |
155 </ul> | 154 </ul> |
156 </div> | 155 </div> |
161 | 160 |
162 <h3>${_('Cache')}</h3> | 161 <h3>${_('Cache')}</h3> |
163 ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} | 162 ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} |
164 <div class="form"> | 163 <div class="form"> |
165 <div class="fields"> | 164 <div class="fields"> |
166 ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="refresh_icon action_button",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} | 165 ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} |
167 </div> | 166 </div> |
168 </div> | 167 </div> |
169 ${h.end_form()} | 168 ${h.end_form()} |
170 | 169 |
171 <h3>${_('Public journal')}</h3> | 170 <h3>${_('Public journal')}</h3> |
172 ${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')} | 171 ${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')} |
173 <div class="form"> | 172 <div class="form"> |
174 <div class="fields"> | |
175 ${h.hidden('auth_token',str(h.get_token()))} | 173 ${h.hidden('auth_token',str(h.get_token()))} |
174 <div class="field"> | |
176 %if c.in_public_journal: | 175 %if c.in_public_journal: |
177 ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Remove from public journal'),class_="stop_following_icon action_button")} | 176 ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Remove from public journal'),class_="ui-btn")} |
178 %else: | 177 %else: |
179 ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Add to public journal'),class_="start_following_icon action_button")} | 178 ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Add to public journal'),class_="ui-btn")} |
180 %endif | 179 %endif |
181 </div> | 180 </div> |
181 <div class="field" style="border:none;color:#888"> | |
182 <ul> | |
183 <li>${_('''All actions made on this repository will be accessible to everyone in public journal''')} | |
184 </li> | |
185 </ul> | |
186 </div> | |
182 </div> | 187 </div> |
183 ${h.end_form()} | 188 ${h.end_form()} |
184 | 189 |
185 <h3>${_('Delete')}</h3> | 190 <h3>${_('Delete')}</h3> |
186 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} | 191 ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} |
187 <div class="form"> | 192 <div class="form"> |
188 <div class="fields"> | 193 <div class="fields"> |
189 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} | 194 ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} |
190 </div> | 195 </div> |
196 <div class="field" style="border:none;color:#888"> | |
197 <ul> | |
198 <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. | |
199 If you need fully delete it from filesystem please do it manually''')} | |
200 </li> | |
201 </ul> | |
202 </div> | |
203 </div> | |
204 ${h.end_form()} | |
205 | |
206 <h3>${_('Set as fork')}</h3> | |
207 ${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')} | |
208 <div class="form"> | |
209 <div class="fields"> | |
210 ${h.select('id_fork_of','',c.repos_list,class_="medium")} | |
211 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('set'),class_="ui-btn",)} | |
212 </div> | |
213 <div class="field" style="border:none;color:#888"> | |
214 <ul> | |
215 <li>${_('''Manually set this repository as a fork of another''')}</li> | |
216 </ul> | |
217 </div> | |
191 </div> | 218 </div> |
192 ${h.end_form()} | 219 ${h.end_form()} |
193 | 220 |
194 </div> | 221 </div> |
195 | 222 |