Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit d53d12478743a738beff16e45ddc9636eba4c772
Author: Jakub Kadl����k <jkadlcik(a)redhat.com>
Date: Mon Dec 21 15:26:45 2015 +0100
[frontend] enhance the packages and webhooks UI
---------------------------------------------------------------
.../coprs/templates/coprs/detail/add_package.html | 6 ++++++
.../templates/coprs/detail/settings/webhooks.html | 17 +++++++++--------
2 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/add_package.html
b/frontend/coprs_frontend/coprs/templates/coprs/detail/add_package.html
index c85c43e..0a0199e 100644
--- a/frontend/coprs_frontend/coprs/templates/coprs/detail/add_package.html
+++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/add_package.html
@@ -13,6 +13,12 @@
<h2>Add Package</h2>
+
+<p>In this view, you can create package entities for this Copr repository. Such a
package can have predefined default
+source and can be automatically build from it via webhook. If you just want to build a
package from SRPM, please
+create a <a href="{{ copr_url('coprs_ns.copr_add_build', copr)
}}">New Build</a>.
+</p>
+
<p>You can choose and configure <b>exactly one</b> default source for
the {{ package.name }} package.</p>
<ul class="nav nav-tabs nav-tabs-pf">
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/settings/webhooks.html
b/frontend/coprs_frontend/coprs/templates/coprs/detail/settings/webhooks.html
index 0ca8f26..dfdfd25 100644
--- a/frontend/coprs_frontend/coprs/templates/coprs/detail/settings/webhooks.html
+++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/settings/webhooks.html
@@ -13,12 +13,12 @@
your git using webhooks.</p>
<h3> How does it work </h3>
<ol>
- <li> Set a default source of a package in this project </li>
- <li> Enable automatic rebuilds for the package </li>
- <li> Use the webhook URL from this project in your Git (see below)
</li>
+ <li> Set a default source of a package in this project. </li>
+ <li> Enable automatic rebuilds for the package. </li>
+ <li> Use the webhook URL from this project in your Git (see below).
</li>
</ol>
<p> Copr will now rebuild the package everytime it recieves the webhook
- call - usualy with every commit </p>
+ call - usualy with every commit. </p>
<h3> Webhook URL for GitHub </h3>
<div class="well well-sm">
@@ -26,10 +26,11 @@
</div>
<h4> How to use it: </h4>
<ol>
- <li> In your GitHub project, go to Settings / 'Webhooks and
services' </li>
- <li> Click on the 'Add webhook' button </li>
- <li> Fill in the 'Payload URL' field with the url above
</li>
- <li> Click the 'Add webhook' button. </li>
+ <li> In your GitHub project, go to <code>Settings</code> /
<code>Webhooks and services</code>. </li>
+ <li> Click on the <code>Add webhook</code> button.
</li>
+ <li> Fill in the <code>Payload URL</code> field with the url
above. </li>
+ <li> Click the <code>Add webhook</code> button. </li>
+ </ol>
</div>
</div>