hellcp / pagure

Forked from pagure 3 years ago
Clone

0c654b7 Make the term we call a Project configurable by the theme

30 files Authored by ryanlerch 5 years ago, Committed by pingou 5 years ago,
30 files changed. 162 lines added. 68 lines removed.
doc/usage/theming.rst
file modified
+31 -0
pagure/templates/_browseheader.html
file modified
+2 -1
pagure/templates/_projectstring.html
file added
+21
pagure/templates/_render_issues.html
file modified
+3 -1
pagure/templates/_render_pullrequests.html
file modified
+3 -1
pagure/templates/_render_repo.html
file modified
+12 -10
pagure/templates/commits.html
file modified
+3 -2
pagure/templates/group_info.html
file modified
+4 -3
pagure/templates/group_list.html
file modified
+3 -2
pagure/templates/index.html
file modified
+4 -3
pagure/templates/master.html
file modified
+2 -1
pagure/templates/releases.html
file modified
+2 -2
pagure/templates/repo_master.html
file modified
+4 -3
pagure/templates/repo_new_pull_request.html
file modified
+3 -2
pagure/templates/user_info.html
file modified
+2 -1
pagure/templates/user_list.html
file modified
+3 -2
pagure/templates/user_settings.html
file modified
+5 -4
pagure/templates/userdash_activity.html
file modified
+4 -3
pagure/templates/userdash_groups.html
file modified
+2 -1
pagure/templates/userdash_master.html
file modified
+5 -4
pagure/templates/userdash_projects.html
file modified
+7 -6
pagure/templates/userdash_watchlist.html
file modified
+3 -2
pagure/templates/userprofile_forks.html
file modified
+3 -1
pagure/templates/userprofile_macros.html
file modified
+3 -1
pagure/templates/userprofile_master.html
file modified
+2 -1
pagure/templates/userprofile_overview.html
file modified
+4 -3
pagure/templates/userprofile_projects.html
file modified
+4 -3
pagure/templates/userprofile_starred.html
file modified
+4 -3
pagure/themes/srcfpo/templates/theme.html
file modified
+11 -0
pagure/themes/srcfpo/templates/userprofile_master.html
file modified
+3 -2
    Make the term we call a Project configurable by the theme
    
    By default, Pagure refers to a code project or repository throughout
    as a "Project". In some cases, when running an instance of Pagure,
    it would be desirable to refer to this as something else, like simply
    a "repository" or in the case of src.fedoraproject.org, a "package".
    
    This change abstracts out this term, (and the icon used to represent
    a 'project') and adds the ability to set two new optional variables
    in the theme.html to change these to whatever the theme maker wants:
    
    * 'projectstring' -- default:'Project'
    * 'projecticon' -- default:'fa-calendar-o fa-rotate-270'
    
    This also updates the theme for srcfpo to change these to 'Package' and
    'fa-archive'
    
        
file modified
+31 -0
file modified
+4 -3
file modified
+2 -1