diff options
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/package_details.html | 14 | ||||
| -rw-r--r-- | app/templates/packages.html | 17 | ||||
| -rw-r--r-- | app/templates/users/user_profile_page.html | 6 |
3 files changed, 36 insertions, 1 deletions
diff --git a/app/templates/package_details.html b/app/templates/package_details.html new file mode 100644 index 0000000..c52cd62 --- /dev/null +++ b/app/templates/package_details.html @@ -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 %} diff --git a/app/templates/packages.html b/app/templates/packages.html new file mode 100644 index 0000000..6caf3f0 --- /dev/null +++ b/app/templates/packages.html @@ -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 %} diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index 0eb6adb..33526de 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -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 %} |
