Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 07222f6f4fbd2a24bdbc74863e0dd7fae9f6b734 Author: Valentin Gologuzov vgologuz@redhat.com Date: Tue Nov 4 15:19:35 2014 +0100
[frontend] show "createrepo" action only when user disable auto_createrepo
.../coprs/templates/coprs/_coprs_forms.html | 5 +---- .../coprs/templates/coprs/detail/overview.html | 5 +++-- 2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/_coprs_forms.html b/frontend/coprs_frontend/coprs/templates/coprs/_coprs_forms.html index cae838b..81c9193 100644 --- a/frontend/coprs_frontend/coprs/templates/coprs/_coprs_forms.html +++ b/frontend/coprs_frontend/coprs/templates/coprs/_coprs_forms.html @@ -21,9 +21,6 @@ {{ render_field(form.description, rows=5, cols=50, placeholder='Optional - describe your project briefly.') }} {{ render_field(form.instructions, rows=5, cols=50, placeholder='Optional - describe how your project can be installed. Where users can report bugs and issues. Link to wiki is good as well.') }}
- - - <dd>You can use <a href="http://daringfireball.net/projects/markdown/syntax">markdown syntax</a>, inline HTML is forbidden..</dd> <dt class="field-label required">Chroots</dt>
@@ -66,7 +63,7 @@ <label for="auto_createrepo">Build release options</label> </dt> <dd> - Automatically re-create repository metadata: + Create repository metadata automatically: {{ form.auto_createrepo }} </dd>
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/overview.html b/frontend/coprs_frontend/coprs/templates/coprs/detail/overview.html index f011242..a88dc9a 100644 --- a/frontend/coprs_frontend/coprs/templates/coprs/detail/overview.html +++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/overview.html @@ -85,17 +85,18 @@ </ul> {% endif %}
- {% if g.user and g.user.can_edit(copr) %} + {% if g.user and g.user.can_edit(copr) and not copr.auto_createrepo %} <div>
<h2>Release options</h2> + <form action="{{ url_for( 'coprs_ns.copr_createrepo', username=copr.owner.name, coprname=copr.name ) }}" method="post" > - + Create repository metodata forcible: <button type="submit">Run createrepo</button> </form> </div>
copr-commits@lists.fedorahosted.org