Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simpler templates for packaged version
- Loading branch information
1 parent
7d2f54c
commit 3d877a0
Showing
2 changed files
with
38 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,34 @@ | ||
{% extends "tpl_master.html" %} | ||
{% extends "base.html" %} | ||
|
||
{% block title %}{{ object.title }}{% endblock %} | ||
{% block col_content %} | ||
<div class="container"> | ||
<a class="btn btn-mini btn-inverse" href="{% url codebragger_project_list %}"><i class="icon-chevron-left icon-white"></i> back to list</a> | ||
<div class="row"> | ||
{% comment %} | ||
<div class="span3"> | ||
<div class="well sidebar-nav"> | ||
<ul class="nav nav-list"> | ||
<li class="nav-header">my projects</li> | ||
{% for nav_project in projects %} | ||
<li{% if project == nav_project %} class="active"{% endif %}><a href="{% url codebragger_project_detail nav_project.slug %}">{{ nav_project.title }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endcomment %} | ||
<div class="span8"> | ||
<h2>{{ object.title }} <small>{{ object.tagline }}</small></h2> | ||
<p>{{ object.short_description }}</p> | ||
{% if project.pypi_url %} | ||
<a class="btn" href="{{ project.pypi_url }}"><img style="vertical-align: text-top;" src="{{ STATIC_URL }}content/icons/pypi-16x16.png" /> download package</a> | ||
{% endif %} | ||
{% if project.repo_url %} | ||
<a class="btn" href="{{ project.repo_url }}"><img style="vertical-align: text-top;" src="{{ STATIC_URL }}content/icons/github-16x16.png" /> sourcecode</a> | ||
{% endif %} | ||
{% if project.docs_url %} | ||
<a class="btn" href="{{ project.docs_url }}"><img style="vertical-align: text-top;" src="{{ STATIC_URL }}content/icons/readthedocs-16x16.png" /> documentation</a> | ||
{% endif %} | ||
</div> | ||
<div class="span2"> | ||
<div> | ||
{% for contributor in project.contributors.all %} | ||
<img src="{{ contributor.person.avatar }}" style="float: left; width: {% if contributor.is_core %}50%{% else %}25%{% endif %}" /> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div class="span2"> | ||
<div class="dashbox-number dashbox-number-primary"> | ||
current release | ||
<big>{{ object.pypi_latest_version }}</big> | ||
</div> | ||
<div class="dashbox-number dashbox-number-inverse"> | ||
downloads | ||
<big>{{ object.pypi_downloads }}</big> | ||
</div> | ||
<div class="dashbox-number dashbox-number-inverse"> | ||
watchers | ||
<big>{{ object.repo_watchers }}</big> | ||
</div> | ||
<div class="dashbox-number dashbox-number-inverse"> | ||
forks | ||
<big>{{ object.repo_forks }}</big> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% block content %} | ||
<h1>{{ object.title }} <small>{{ object.tagline }}</small></h1> | ||
<p>{{ object.short_description }}</p> | ||
{% if project.pypi_url %} | ||
<a class="btn" href="{{ project.pypi_url }}">download package</a> | ||
{% endif %} | ||
{% if project.repo_url %} | ||
<a class="btn" href="{{ project.repo_url }}">sourcecode</a> | ||
{% endif %} | ||
{% if project.docs_url %} | ||
<a class="btn" href="{{ project.docs_url }}">documentation</a> | ||
{% endif %} | ||
<ul> | ||
{% for contributor in project.contributors.all %} | ||
<li><img src="{{ contributor.person.avatar }}" style="float: left; width: {% if contributor.is_core %}40px{% else %}20px{% endif %}" /></li> | ||
{% endfor %} | ||
</ul> | ||
<dl> | ||
<dt>current release</dt> | ||
<dd>{{ object.pypi_latest_version }}</dd> | ||
|
||
<dt>downloads</dt> | ||
<dd>{{ object.pypi_downloads }}</dd> | ||
|
||
<dt>watchers</dt> | ||
<dd>{{ object.repo_watchers }}</dd> | ||
|
||
<dt>forks</dt> | ||
<dd>{{ object.repo_forks }}</dd> | ||
</dl> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
{% extends "tpl_master.html" %} | ||
{% extends "base.html" %} | ||
|
||
{% block title %}OpenSource Projects{% endblock %} | ||
|
||
{% block col_content %} | ||
<div class="container"> | ||
<table class="table"> | ||
{% for object in object_list %}{% with object as project %} | ||
<tr> | ||
<td> | ||
<h2>{{ object.title }} <small>{{ object.tagline }}</small></h2> | ||
</td> | ||
<td style="vertical-align: middle; text-align: right;"> | ||
<a class="btn btn-primary" href="{% url codebragger_project_detail object.slug %}">show details</a> | ||
</td> | ||
</tr> | ||
{% endwith %}{% endfor %} | ||
</table> | ||
</div> | ||
{% block content %} | ||
<ul> | ||
{% for object in object_list %} | ||
<li><a href="{% url codebragger_project_detail object.slug %}"><strong>{{ object.title }}</strong></a> <small>{{ object.tagline }}</small></li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} |