Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Design updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Dec 4, 2012
1 parent 1a88202 commit 31130cf
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ edit.underline.symbol: U
edit.underline.title: Underline
news: News
news.archives: Archives
news.archives.meta_description: "EuroCoin Mania news archives for tag « %tag% »"
news.archives.meta_description: EuroCoin Mania news archives
news.archives_tag: "Archives for « %tag% »"
news.archives_tag.meta_description: "EuroCoin Mania news archives for tag « %tag% »"
news.author: Author
news.comment: Comment
news.comment.add: Post a comment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ edit.underline.symbol: S
edit.underline.title: Souligné
news: Actualités
news.archives: Archives
news.archives.meta_description: "Archives des news d'EuroCoin Mania correspondant au tag « %tag% »"
news.archives.meta_description: Archives des news d'EuroCoin Mania
news.archives_tag: "Archives pour « %tag% »"
news.archives_tag.meta_description: "Archives des news d'EuroCoin Mania correspondant au tag « %tag% »"
news.author: Auteur
news.comment: Commentaire
news.comment.add: Poster un commentaire
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
{% extends '::base.html.twig' %}

{% block meta_description %}{{ 'news.archives.meta_description'|trans({ '%tag%': tag })|raw }}{% endblock %}
{% block meta_description %}
{% if tag %}
{{ 'news.archives_tag.meta_description'|trans({ '%tag%': tag })|raw }}
{% else %}
{{ 'news.archives.meta_description'|trans }}
{% endif %}
{% endblock %}

{% block title %}{{ 'news.archives'|trans }}{% endblock %}
{% block title %}
{% if tag %}
{{ 'news.archives_tag'|trans({ '%tag%': tag })|raw }}
{% else %}
{{ 'news.archives'|trans }}
{% endif %}
{% endblock %}

{% block body %}

<h2 class="page-header">{{ block('title') }}</h2>

<div class="row-fluid">
Expand Down
11 changes: 10 additions & 1 deletion src/Euro/CoinBundle/Resources/views/Exchange/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
</thead>
<tbody>
{% set row_classes = ['info', 'success', 'warning', 'error'] %}
{% set status_icons = {
1: 'icon-refresh',
2: 'icon-ok',
3: 'icon-minus-sign',
4: 'icon-remove'
} %}
{% for exchange in exchanges %}
<tr class="{{ row_classes[exchange.status - 1] }}">
<td><a href="{{ path('exchange_show', { id: exchange.id }) }}">#{{ exchange.id }}</a></td>
Expand Down Expand Up @@ -67,7 +73,10 @@
</td>

{% if all %}
<td>{{ ('exchange.status' ~ exchange.status)|trans }}</td>
<td>
<i class="{{ status_icons[exchange.status] }}"></i>
{{ ('exchange.status' ~ exchange.status)|trans }}
</td>
{% else %}
<td>
<div class="btn-group">
Expand Down

0 comments on commit 31130cf

Please sign in to comment.