From 3ace485f0a33ff9723dc45ed5bea9c717659e193 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 08 2017 16:11:50 +0000 Subject: Add a customized index page to be displayed when the users are logged out Fixes https://pagure.io/fedora-infrastructure/issue/6210 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure-dist-git.spec b/pagure-dist-git.spec index f9b1ebe..fe8f5ee 100644 --- a/pagure-dist-git.spec +++ b/pagure-dist-git.spec @@ -98,6 +98,9 @@ dist-git which has a different access model than regular projects on pagure # Install the custom template/theme mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/template/ install -p -m 644 template/repo_info.html $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/template/ +install -p -m 644 template/index.html $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/template/ + +# Install the customized static files or our own mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/static/ install -p -m 644 static/pagure-logo.png $RPM_BUILD_ROOT/%{_datadir}/pagure_dist_git/static/ diff --git a/template/index.html b/template/index.html new file mode 100644 index 0000000..720d4ee --- /dev/null +++ b/template/index.html @@ -0,0 +1,140 @@ +{% 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 however find source code for Fedora packages 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 %}