Permalink
Browse files

#7 - Usage of split for nice presentation

  • Loading branch information...
egulias committed Apr 15, 2012
1 parent e0cdd81 commit 0f76009e74a3be008d88af92f0504c0baa9b4b55
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/SFM/WebsiteBundle/Resources/views/Widgets/google-group.html.twig
@@ -4,8 +4,15 @@
{% if loop.index < 6 %}
<li><a href="{{thread.link}}">{{thread.title}}</a>
<ul>
- <li>{{thread.author}}</li>
- <li>{{thread.pubDate}}</li>
+ <li>por
+ {% set author = thread.author | split('(')%}
+ {% set author = author[1] | split(')') %}
+ {{author[0]}}
+ </li>
+ <li>
+ {% set created = thread.pubDate | split(' UT')%}
+ el {{created[0] | date('d/m/Y', 'UTC')}}
+ </li>
</ul>
</li>
{%endif%}

0 comments on commit 0f76009

Please sign in to comment.