Build templates.
parent
56de76f017
commit
91f0f919b2
|
@ -0,0 +1,59 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ build.name }}{% endblock %}
|
||||
|
||||
{% block build_editing %}
|
||||
<!-- BEGIN build bar -->
|
||||
<div id="build_bar">
|
||||
<div class="wrapper">
|
||||
|
||||
<div class="build-title">
|
||||
<h2>{{ build }}</h2>
|
||||
<a href="{% url builds_user_list build.user.username %}" class="quiet">({{ build.user }})</a>
|
||||
<span class="quiet">{% if build.version %}version {{ build.version }} -{% endif %} {{ build.modified_date|date:"j F, Y" }}</span>
|
||||
</div>
|
||||
|
||||
<div class="editing-options">
|
||||
<ul>
|
||||
<li {% block editing-option-view %}{% endblock %}><a href="{{ build.get_docs_url }}">View Docs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END build bar -->
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if build.build_url %}
|
||||
<a href="{{ build.build_url }}" rel="nofollow,noindex">Project Homepage</a>
|
||||
{% endif %}
|
||||
|
||||
<h3>Tags</h3>
|
||||
<ul>
|
||||
{% for tag in build.tags.all %}
|
||||
<li><a href="{% url builds_tag_detail tag.slug %}">{{ tag.name }}</a></li>
|
||||
{% empty %}
|
||||
<li>No tags</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<h3>Latest Revisions</h3>
|
||||
<ul>
|
||||
{% for revision in build.get_latest_revisions|slice:":5" %}
|
||||
<li>{{ revision }} {{ revision.created_date|timesince }} ago</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<h3>Projects by {{ build.user.username }}</h3>
|
||||
<ul>
|
||||
{% for user_build in user.builds.all %}
|
||||
{% if build.pk != user_build.pk %}
|
||||
<li><a href="{{ user_build.get_absolute_url }}">{{ user_build.name }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if user.builds.all|length == 1 %}
|
||||
<li>No other builds by {{ build.user.username }}</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endblock %}
|
|
@ -0,0 +1,37 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% load pagination_tags %}
|
||||
|
||||
{% block title %}Builds{% endblock %}
|
||||
|
||||
{% block nav-browse %}class="active"{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% autopaginate build_list 15 %}
|
||||
|
||||
<!-- BEGIN builds list -->
|
||||
<div class="module">
|
||||
<div class="module-wrapper">
|
||||
|
||||
<div class="module-header">
|
||||
<h2>Recent Builds</h2>
|
||||
</div>
|
||||
|
||||
<div class="module-list">
|
||||
<div class="module-list-wrapper">
|
||||
|
||||
<ul>
|
||||
{% include "core/build_list_detailed.html" %}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- END builds list -->
|
||||
|
||||
{% paginate %}
|
||||
|
||||
{% endblock %}
|
|
@ -0,0 +1,11 @@
|
|||
{% extends "projects/base_project.html" %}
|
||||
|
||||
{% block title %}Popular tags{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for tag in tag_list %}
|
||||
<li><a href="{% url projects_tag_detail tag.slug %}">{{ tag.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
{% for build in build_list %}
|
||||
<li class="module-item">
|
||||
<a class="module-item-title" href="{{ build.get_absolute_url }}">{{ build.project.name }}</a>
|
||||
<a href="{% url projects_user_list build.project.user.username %}" class="quiet">({{ build.project.user }})</a>
|
||||
<span class="quiet">{% if build.project.version %}version {{ build.project.version }} -{% endif %} {{ build.date|date:"j F, Y" }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue