Skip to content

Commit

Permalink
Date rendering cleanups. Nicer looking news.
Browse files Browse the repository at this point in the history
  • Loading branch information
illume committed Mar 3, 2017
1 parent 63faa8d commit 6c3703f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pygameweb/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h2>Recent Releases</h2>

<a href="{{ url_for('project.view', project_id=project.id, release_id=release.id) }}"
class="list-group-item">
<span>{{ release.datetimeon }}<span>
<span>{{ release.datetimeon.strftime('%-d %b, %Y') }}<span>
{% set thumb = project.image_thumb(230,230) %}
{% if thumb %}
<img class="img-responsive" src="{{ thumb }}">
Expand Down
11 changes: 7 additions & 4 deletions pygameweb/templates/news/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ <h1>News</h1>
<div>
{% for new in news %}

<section>
<h3>{{ new.title_html }} - {{ new.datetimeon }}</h3>
{{ new.description_html|safe }}
</section>
<div class="panel panel-default">
<div class="panel-heading">{{ new.title_html }} &mdash; {{ new.datetimeon.strftime('%-d %b, %Y') }}</div>
<div class="panel-body">
{{ new.description_html|safe }}
</div>
</div>


{% endfor %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion pygameweb/templates/project/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>Your Releases - {{ project.title }}</h1>
{% for release in releases %}
<tr>
<td>{{ release.version }}</td>
<td>{{ release.datetimeon }}</td>
<td>{{ release.datetimeon.strftime('%-d %b, %Y') }}</td>
<td><a href="{{ url_for('project.release', project_id=project.id, release_id=release.id)}}">view <span class="glyphicon glyphicon-file"></span></a></td>
<td><a href="{{ url_for('project.edit_release', project_id=project.id, release_id=release.id) }}">edit <span class="glyphicon glyphicon-edit"></span></a></td>
<td><a href="{{ url_for('project.delete_release', project_id=project.id, release_id=release.id) }}">delete <span class="glyphicon glyphicon-minus"></span></a></td>
Expand Down
2 changes: 1 addition & 1 deletion pygameweb/templates/project/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h3>Releases</h3>

{% for arelease in project.releases %}
<p>
<a href="{{ url_for('project.view', project_id=project.id, release_id=arelease.id) }}">{{ arelease.version }} - {{ arelease.datetimeon }}</a>
<a href="{{ url_for('project.view', project_id=project.id, release_id=arelease.id) }}">{{ project.title }} {{ arelease.version }} &mdash; {{ arelease.datetimeon.strftime('%-d %b, %Y') }}</a>
</p>
{% endfor %}

Expand Down

0 comments on commit 6c3703f

Please sign in to comment.