From 74b9b0170bd7dae37c1656ed703176d5ffef3be5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 24 2018 14:35:05 +0000 Subject: Drop the static and templates files These are now part of the srcfpo theme in pagure itself Signed-off-by: Pierre-Yves Chibon --- diff --git a/static/pagure-logo.png b/static/pagure-logo.png deleted file mode 100644 index 0c1e914..0000000 Binary files a/static/pagure-logo.png and /dev/null differ diff --git a/template/commit.html b/template/commit.html deleted file mode 100644 index 42d2a56..0000000 --- a/template/commit.html +++ /dev/null @@ -1,283 +0,0 @@ -{% extends "repo_master.html" %} - -{% block title %}Commit - {{ - repo.namespace + '/' if repo.namespace }}{{ repo.name }} - {{ commitid }}{% endblock %} -{% set tag = "commit" %} - -{% block repo %} - -{% set split_message = commit.message.split('\n') %} -
-

- Commit {{ commitid|short }} - {{ split_message[0] }} -
- raw - patch - tree - {% if (commit.parents|length) == 1 %} - parent - {% elif (commit.parents|length) > 1 %} -
- - -
- {% endif %} -
-

-
- {% if (commit.author|author2user) == (commit.committer|author2user) %} - {{ diff|count }} file{{'s' if (diff|count) > 1 }} - {% if (commit.parents|length) == 1 %} - Authored and Committed by {{ commit.author|author2user|safe }} - {% else %} - Merged and Committed by {{ commit.author|author2user|safe }} - {% endif %} - - {{ commit.commit_time|humanize }} - - {% else %} - {{ diff|count }} file{{'s' if (diff|count) > 1 }} - {% if (commit.parents|length) == 1 %} - Authored by {{ commit.author|author2user|safe }} - {% else %} - Merged by {{ commit.author|author2user|safe }} - {% endif %} - - {{ commit.commit_time|humanize }} - , - Committed by {{ commit.committer|author2user|safe }} - - {{ commit.commit_time|humanize }} - , - {% endif %} -
-
-
- - - -
- {% if split_message|length > 1 %} -
-        {% for message in split_message %}
-{{ message }}
-        {% endfor %}
-    
- {% endif %} -
- -
-
-
    - {% for flag in flags %} -
  • -
    - - {{ flag.username }} - -
    - - {{ flag.status }} - {%- if flag.percent %} ({{ flag.percent }}%) {%- endif %} - -
    -
    -
    - {{ flag.comment }} -
    - {{ flag.date_created | humanize }}
    -
    -
    -
  • - {% endfor %} -
-
-
- -{% set filecount = 0 %} -{% for patch in diff %} - {% set filecount = filecount + 1 %} -
-
- {% if patch|hasattr('new_file_path') %} - - {{ patch.new_file_path|unicode }} - - {% elif patch|hasattr('delta') %} - - {{ patch.delta.new_file.path|unicode }} - - {% endif %} - {% if not patch.is_binary %} - {% if patch|hasattr('additions') %} - {% if (patch.additions + patch.deletions) %} - - {% if patch.additions > 0 %}+{{ patch.additions }} {% endif %} - {% if patch.deletions > 0 %}-{{ patch.deletions }}{% endif %} - - {% endif %} - {% else %} - {% if (patch.line_stats[1] + patch.line_stats[2]) %} - - {% if patch.line_stats[1] > 0 %}+{{ patch.line_stats[1] }} {% endif %} - {% if patch.line_stats[2] > 0 %}-{{ patch.line_stats[2] }}{% endif %} - - {% endif %} - {% endif %} - {% endif %} -
- - {% if patch.is_binary %} -

Binary diffs cannot be rendered.

- {% else %} - {% autoescape false %} - {{ patch|patch_to_diff|html_diff}} - {% endautoescape %} - {% endif %} -
- -{% endfor %} - -{% endblock %} - - - -{% block jscripts %} - {{ super() }} - -{% endblock %} diff --git a/template/commits.html b/template/commits.html deleted file mode 100644 index e0460b1..0000000 --- a/template/commits.html +++ /dev/null @@ -1,254 +0,0 @@ -{% extends "repo_master.html" %} - -{% from "_render_repo.html" import pagination_link %} - -{% block title %}{{ select.capitalize() }} - {{ - repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %} -{% set tag = "home" %} - -{% block header %} - {{ super() }} - -{% endblock %} - -{% block repo %} -
- {% if g.repo_obj and g.repo_obj.is_empty %} -
- -
- {% else %} -
-

- Commits {{number_of_commits}} -

-
- -
-
-
- {% if repo.is_fork %} - - {{ repo.user.user }}/{{ repo.name }} - {% else %} - {{ repo.name }} - {% endif %} - -
- {% if branchname %} -
- - -
- {% endif %} -
-
-
- - {% if (diff_commits|count) > 0 and head %} - - {% endif %} - -
- {% for commit in last_commits %} -
- {% if diff_commits and commit.oid.hex in diff_commits %} -
- -
- {% endif %} -
- - {{ commit.message.split('\n')[0] }} -
- - {{ commit.commit_time|humanize }} - -
-
-
- {{ commit.author|author2user_commits( - link=url_for('ui_ns.view_commits', - repo=repo.name, - branchname=branchname, - username=username, - namespace=repo.namespace, - author=commit.author.email), - cssclass="notblue")|safe }} -
- - {{ commit.hex|short }} - -
-
- {% endfor %} -
- - {{ pagination_link('page', g.page, total_page) }} - - {% endif %} - -{% endblock %} - -{% block jscripts %} -{{ super() }} - -{% endblock %} diff --git a/template/index.html b/template/index.html deleted file mode 100644 index 6687ee1..0000000 --- a/template/index.html +++ /dev/null @@ -1,141 +0,0 @@ -{% extends "master.html" %} - -{% block title %}Home{% endblock %} -{% set tag = "home" %}i - -{% from "_render_repo.html" import render_repos, render_user_repos%} -{% from "_browseheader.html" import browse_header %} - - -{% block header %} - -{% endblock %} - -{% block content %} -
-
- {{ browse_header(select=select) }} -
-
-
- {% if not authenticated %} -
-

- Welcome to Fedora's repository for package maintenance. If you're - looking to download software to run, look at - https://getfedora.org/, or a - Fedora Mirror. - You can also find source RPMs for Fedora-packaged software there. - The source code for building those packages is found here. -

- -

- If you are looking for RPM spec files, module and container definitions, - Fedora-specific patches, tests, and so on, you're in the right place. - You can browse packages and - packagers — and you can fork, improve, and submit - pull requests. -

- -

- If you are already a package maintainer, feel free to consult the - docs on using - pagure. If you'd like to become a package maintainer, see - - this guide. -

- -

- Note that package issues are still tracked in - Bugzilla, - not with Pagure's issue feature. -

-
- {% endif %} - - {{ render_repos( - repos, total_page, 'page', page, - 'All Projects', repos_length, 'repos', username, sorting=sorting) }} -
- -{% endblock %} - -{% block jscripts %} - {{ super() }} - - - - - -{% endblock %} diff --git a/template/index_auth.html b/template/index_auth.html deleted file mode 100644 index ade3fb8..0000000 --- a/template/index_auth.html +++ /dev/null @@ -1,199 +0,0 @@ -{% extends "master.html" %} - -{% block title %}Home{% endblock %} -{% set tag = "projects" %} -{% from "_browseheader.html" import browse_header %} - - -{% block header %} - -{% endblock %} - - -{% from "_render_repo.html" import render_repos_as_card, render_activity_graph %} - -{% block content %} -
-
-
-
- - {{ render_activity_graph(username) }} - -
-
- My Projects {{repos | count}} - {% if config.get('ENABLE_NEW_PROJECTS', True) and - config.get('ENABLE_UI_NEW_PROJECTS', True) and repos %} - - - - - - {% endif %} -
- {% if repos %} -
- {% for repo in repos %} -
- {% set url = url_for( - 'ui_ns.view_repo', - repo=repo.name, - username=repo.user.username if repo.is_fork else None, - namespace=repo.namespace) %} - - {% if repo.avatar_email %} -   - {% else %} - - {% endif %} - {{ repo.namespace + '/' if repo.namespace }}{{ repo.name }} - -
- {% endfor %} -
- {% else %} -
-
You have no projects
-
- {% if config.get('ENABLE_NEW_PROJECTS', True) and - config.get('ENABLE_UI_NEW_PROJECTS', True) %} - - Create a Project - - {% endif %} -
-
- {% endif %} -
- -
-
- My Forks {{forks | count}} -
- {% if forks %} -
- {% for fork in forks %} -
- {% set url = url_for( - 'ui_ns.view_repo', - repo=fork.name, - username=fork.user.username if fork.is_fork else None, - namespace=fork.namespace) %} - - - - {{fork.user.username}}/{{ fork.namespace + '/' if fork.namespace }}{{ fork.name }} - - -
- {% endfor %} -
- {% else %} -
-

You have no forks

-
- {% endif %} -
- -
-
-
-
- My Groups {{ user.groups | length }} - - {% if config.get('ENABLE_GROUP_MNGT') %} - - - - {% endif %} - -
- {% for group in user.groups %} - - {% else %} -
-

No group found

-
- {% endfor %} -
-
-
- My Watch List {{ watch_list | count }} -
- {% for repo in watch_list %} - - {% else %} -
-

No project in watch list

-
- {% endfor %} -
-
-
-
-
-{% endblock %} - -{% block jscripts %} - {{ super() }} - -{% endblock %} diff --git a/template/repo_info.html b/template/repo_info.html deleted file mode 100644 index aac5798..0000000 --- a/template/repo_info.html +++ /dev/null @@ -1,517 +0,0 @@ -{% extends "repo_master.html" %} - - -{% block title %}{{ select.capitalize() }} - {{ - repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %} -{% set tag = "home" %} - -{% block header %} - - - -{% endblock %} - -{% block repo %} - - {% if authenticated and g.repo_committer and not repo.is_fork - and not repo.settings.get('pull_requests', True) and not readme %} -
-
- -
-
- {% endif %} - -
- {% if g.repo_obj and g.repo_obj.is_empty %} -
- -
- {% else %} -
-
-
-
-
-
- -
-
- {% if readme %} -
- {{ readme | noJS | safe }} -
- {% else %} -
-
-
- The {{repo.name}} project's README file is empty or unavailable. -
-
-
- {% endif %} -
- {% endif %} -
-
-
-
Contributors
-
- - {% for access in repo.contributors %} - {% for user in repo.contributors[access] %} - - {% endfor %} - {% endfor %} - {% for access in repo.contributor_groups %} - {% for group in repo.contributor_groups[access] %} -
- - @{{ group.group_name }} - - - {{ access }} -
- {% endfor %} - {% endfor %} -
-
Branches
-
- {% if head %} -
-
- {% if branchname == head %} - - {{ head }} - {% else %} - - - {{ head }} - - {% endif %} -
-
- -
-
- {% endif %} - - {% for branch in g.branches if branch != head%} -
-
- - {% if branchname != branch %} - {{ branch }} - - {% else %} - {{ branch }} - {% endif %} - -
-
- {% if g.repo_committer and branch != head and config.get('ALLOW_DELETE_BRANCH', True) %} -
- {{ form.csrf_token }} - - - -
- {% endif %} -
-
- {% endfor %} -
-
Source GIT URLs{% if - (authenticated and g.repo_committer) or - (config['DOC_APP_URL'] and repo and - repo.settings.get('project_documentation', True)) - %} - {%endif%}
-
- {% if authenticated and g.repo_committer %} -
-
-
SSH
- -
-
- {% endif %} -
-
-
GIT
- -
-
-
- {% if config['DOC_APP_URL'] - and repo - and repo.settings.get('project_documentation', True) %} -
Docs GIT URLs
- {% if authenticated and g.repo_committer %} -
-
-
SSH
- -
-
- {% endif %} -
-
-
GIT
- -
-
- {% endif %} - {% if authenticated and g.repo_committer %} - {% if config.get('ENABLE_TICKETS', True) - and repo.settings.get('issue_tracker', True) %} -
Issues GIT URLs
-
-
-
SSH
- -
-
- {% endif %} -
Pull Requests GIT URLs
-
-
-
SSH
- -
-
- {% endif %} -
-
-
-
- created {{repo.date_created|humanize}} -
-
- - {% if last_commits %} - -
- {% endif %} -
- - - -{% endblock %} - -{% block jscripts %} -{{ super() }} - -{% endblock %} diff --git a/template/user_info.html b/template/user_info.html deleted file mode 100644 index 87fc1a3..0000000 --- a/template/user_info.html +++ /dev/null @@ -1,125 +0,0 @@ -{% extends "master.html" %} - -{% block title %}User {{ user.html_title }}{% endblock %} -{% set tag = "users" %} -{% from "_browseheader.html" import browse_header %} - - -{% block header %} - -{% endblock %} - - -{% from "_render_repo.html" import render_repos_as_card, render_activity_graph %} - - -{% block content %} -
-
- {{browse_header(select=tag)}} -
-
-
-
-

- {{ user.default_email | avatar(36) | safe }} {{ username }} -

-

- Joined {{ user.created | humanize }} {% if config['FAS_URL'] - %}(fas){% - endif %} - -

-
-
- {{ render_activity_graph(username) }} - {{ render_repos_as_card(repos, repos_length, 'Projects', 'repopage', repopage, total_page_repos) }} - {{ render_repos_as_card(forks, forks_length, 'Forks', 'forkpage', forkpage, total_page_forks) }} -
-
-
-
- Groups {{ user.groups | length }} -
- {% for group in user.groups %} - - {% else %} -
-

No group found

-
- {% endfor %} -
-
-
-
-
-{% endblock %} - -{% block jscripts %} - {{ super() }} - - - -{% endblock %}