Add package list and package view

This commit is contained in:
rubenwardy
2018-03-19 18:08:41 +00:00
parent 84f123a0ab
commit 358fc4e5da
6 changed files with 70 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block title %}
{{ package.title }}
{% endblock %}
{% block content %}
{{ package.title }}
{{ package.author.display_name }}
{{ package.name }}
{{ package.desc }}
<a href="{{ package.repo }}">VCS Repo</a>
<a href="{{ package.issueTracker }}">Report Issue</a>
{% endblock %}

View File

@@ -0,0 +1,17 @@
{% extends "base.html" %}
{% block title %}
{{ title }}
{% endblock %}
{% block content %}
<ul>
{% for p in packages %}
<li><a href="{{ url_for('package_page', type='mod', author=p.author.username, name=p.name) }}">
{{ p.title }} by {{ p.author.display_name }}
</a></li>
{% else %}
<li><i>No packages available</i></ul>
{% endfor %}
</ul>
{% endblock %}

View File

@@ -20,7 +20,11 @@
{% elif user == current_user %}
<a href="">Link Forums Account</a>
{% endif %}
|
{% if (user.forums_username and user.github_username) or user == current_user %}
|
{% endif %}
{% if user.github_username %}
<a href="https://github.com/{{ user.github_username }}">GitHub</a>
{% elif user == current_user %}