diff --git a/pagure/templates/issues.html b/pagure/templates/issues.html index 41ac510..f3d91b8 100644 --- a/pagure/templates/issues.html +++ b/pagure/templates/issues.html @@ -57,7 +57,7 @@ {% endfor %} - +
@@ -124,4 +124,3 @@
#
{% endblock %} - diff --git a/pagure/templates/master.html b/pagure/templates/master.html index 42c6cb9..2115790 100644 --- a/pagure/templates/master.html +++ b/pagure/templates/master.html @@ -111,10 +111,6 @@ filename='jquery-ui-1.11.2.custom.min.js') }}"> - {% endblock %} diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index ed32b71..bf5bcd2 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -10,74 +10,159 @@ {% block repo %}
-
- {% if readme %} -
- {% if safe %} - {{ readme | noJS |safe }} - {% else %} - {{ readme | noJS }} - {% endif %} -
- {% endif %} -
-
-
-
- Admins + {% if origin == 'view_repo' or origin == 'view_repo_branch' %} +
+ {% if readme %} +
+ {% if safe %} + {{ readme | noJS |safe }} + {% else %} + {{ readme | noJS }} + {% endif %} +
+ {% endif %} +
+
+ -
- +
-
- +
+ {% endif %}
@@ -112,24 +197,26 @@ {% else %} -
-

Branches

-
- - {% if total_page %} +
@@ -156,106 +243,26 @@
{% endif %} - - - {% endif %} diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index c521a96..63c7cc2 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -12,34 +12,7 @@ {{ repo.fullname }} - {% if branchname %} -
- - - -
- {% endif %} + diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index 4c44622..3e301f6 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -12,156 +12,185 @@ {% block repo %}
-

Settings

+

Settings for {{repo.name}}

+
+
+
+
+ Project Details +
+
+
+
+ + + Short description of the project +
+
+ + + Website URL of the project +
+
+ + + Email address linked to avatar to display for the project +
+
+ + + tags for project +
+ + {{ form.csrf_token }} +
+
+
+
+
+
+
+ Default Branch +
+
+
+ {{ branches_form.csrf_token }} + {{ branches_form.branches(class_="c-select") }} + +
+
+
+
+
+
+
+ Private web-hook key +
+
+

+ Each message sent to the web-hook are signed via hmac and SHA1 using + this private key. +

+

+ This key is private to your project, make sure to store in a safe place + and do not share it. +

+
+
+
+ +
+
-
-

Update project

-
- - - - - - - - - - - - - - - - - -
- - -
-
- - - -
- - - -
- - - -
- - {{ form.csrf_token }} -
-
-
-

Default Branch

+
+ + {{ form.csrf_token }} +
+
+
+
-
- {{ branches_form.csrf_token }} - {{ branches_form.branches }} - -
-
+
+
+
+ API Keys +
+
+

+ API keys are tokens used to authenticate you on pagure. They can also + be used to grant access to 3rd party application to behave on this + project on your name. +

+

+ These keys are valid for 60 days. +

+

+ These keys are private to your project, make sure to store in a safe + place and do not share it. +

+
+ {% if repo.tokens %} +
    + {% for token in repo.tokens %} + {% if token.user.username == g.fas_user.username %} +
  • +
    +
    +
    + +
    +
    + {% if token.expired %} + Expired since {{ token.expiration.date() }} + {% else %} + Valid until: {{ token.expiration.date() }} +
    + + {{ form.csrf_token }} +
    + {% endif %} + + +
  • + {% endif %} + {% endfor %} +
+ {% endif %} + + +
+
- {% if config.get('WEBHOOK') %} -
-

Private web-hook key

-

- Each message sent to the web-hook are signed via hmac and SHA1 using - this private key. -

-

- This key is private to your project, make sure to store in a safe place - and do not share it. -

-
-        {{ repo.hook_token }}
-    
-
- - {{ form.csrf_token }} -
- {% endif %} +

API key

-

- API keys are tokens used to authenticate you on pagure. They can also - be used to grant access to 3rd party application to behave on this - project on your name. -

-

- These keys are valid for 60 days. -

-

- These keys are private to your project, make sure to store in a safe - place and do not share it. -

- - {% if repo.tokens %} - - {% for token in repo.tokens %} - {% if token.user.username == g.fas_user.username %} - - - - - - - {% endif %} - {% endfor %} -
- {{ token.id }} - - {% if token.expired %} - Expired since {{ token.expiration.date() }} - {% else %} - Valid until: {{ token.expiration.date() }} - {% endif %} - - ACLs - -
- - {{ form.csrf_token }} -
-
- {% endif %} - - - -
diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py index 99dc909..d5a61c1 100644 --- a/pagure/ui/repo.py +++ b/pagure/ui/repo.py @@ -139,6 +139,7 @@ def view_repo(repo, username=None): head=head, readme=readme, safe=safe, + origin='view_repo', branches=sorted(repo_obj.listall_branches()), branchname=branchname, last_commits=last_commits,