noosfero | Adds option to reorder portal news (!1430)

Rodrigo Souto gitlab at mg.gitlab.com
Tue Apr 17 18:14:39 BRT 2018


Rodrigo Souto started a new discussion on app/views/home/index.html.erb:

>  
>      <div id='portal-news'>
>        <ul>
> -        <% @portal_news.each do |news| %>
> -          <li>
> -          <span class="post-date"><%= show_date(news.published_at, true) %> </span>
> -          <%= link_to(h(news.title), news.url, :class =>  'post-title' ) %>
> +        <% @portal_news.each_with_index do |news, index| %>
> +          <li class='portal-news-item'>
> +            <span class="post-date">
> +              <%= show_date(news.published_at, true) %>
> +            </span>
> +            <%= link_to(h(news.title), news.url, class: 'post-title') %>
> +            <% if current_person.in? environment.admins %>

Same as above.

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1430#note_68907843
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180417/925f4767/attachment-0001.html>


More information about the Noosfero-dev mailing list