From 55f2212f131bed230db61cf30e7bba394b3ff66d Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 07 2019 11:01:10 +0000 Subject: Change "created by" to "maintained by" in repo info This changes the string in the repo info page that displays the main admin of a repo from 'created by' to 'maintained by'. This change is due to the fact that ownership of a repo can be changed, and the current main admin my not be the user that actually created the project. Also adds a second line that shows the creation date of a repo. Also changes the owner string in userdash projects to maintainer, and the main admin in the repo acls list on repoinfo to maintainer. Fixes #4055 --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index fa3da23..39724f4 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -72,13 +72,13 @@ {% endif %} {% if not repo.is_fork %} - - Created by +
Created {{repo.date_created|humanize}}
+
+ Maintained by {{- repo.user.user -}} - {{repo.date_created|humanize}} - +
{% endif %}
{% if repo.description %}{{ repo.description | noJS | safe }}{% else %}-{% endif -%} @@ -221,7 +221,7 @@ {{ repo.user.fullname }}
-
main admin
+
maintainer
{% for access in repo.contributors %} {% for user in repo.contributors[access] %} diff --git a/pagure/templates/userdash_projects.html b/pagure/templates/userdash_projects.html index 7ed2074..3c948a0 100644 --- a/pagure/templates/userdash_projects.html +++ b/pagure/templates/userdash_projects.html @@ -57,7 +57,7 @@ {% if acl %} - {{ acl if acl != 'main admin' else 'owner' }} + {{ acl if acl != 'main admin' else 'maintainer' }} {% endif %} {% if author %} @@ -85,7 +85,7 @@