Sha256: ea26cf1a73cc43a7bbe20aef7a6dd4c4bc5e417db312b8e09b36e6e28ae13871

Contents?: true

Size: 1.45 KB

Versions: 4

Compression:

Stored size: 1.45 KB

Contents

<%= "<div id=\"#{opts[:div_id]}\">".html_safe if opts[:div_id] %>
  
<div class="forum-topics">
  <div id="back-list"><%= link_to( t('dc_forum.forums_list'), { path: params[:path] }) %> </div>

  <div id="dc-forum-menu">
    <div class="dc-link" style="white-space: nowrap;">
      <%= link_to( t('dc_forum.new_topic'), 
          {controller: 'cmsedit', table: 'dc_forum_topic', form_name: 'dc_forum_topic', 
          action: 'new', forum: forum._id}, target: 'iframe_edit', class:  'dc-animate', ref: 'nofollow') %>
    </div>
    <div style="text-align: right; width: 100%;"><%= paginate topics %></div>
  </div>
  
  <div class="forum-title">
    <h2><%= forum.name %></h2>
  </div>
  
  <% for topic in topics %>
    <div class="topic-<%= cycle("odd", "even") %>">
    <%= link_to(topic.subject, { path: params[:path], forum: params[:forum], topic: topic._id } ) %><br>
      
      <b><%= t('dc_forum.created_by') %>:</b> <%= topic.created_by_name %> 
      &nbsp;|&nbsp; <%= dc_pretty_date(topic.created_at) %> &nbsp;|&nbsp;

      <b><%= t('dc_forum.replies') %>:</b>
      <%= topic.replies %>
      
      <% if topic.updated_at != topic.created_at %>
        &nbsp;|&nbsp; <b><%= t('dc_forum.last') %>:</b>
        <%= topic.updated_by_name %>
        &nbsp;|&nbsp; <%= dc_pretty_date(topic.updated_at) %>
      <% end %>
    </div>
  <% end %>

</div>

<iframe id="iframe_edit" name="iframe_edit" scrolling="no"></iframe>
<%= "</div>".html_safe if opts[:div_id] %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
drg_blog_news_forum-0.6.5 app/views/dc_forum/_topics.html.erb
drg_blog_news_forum-0.6.4 app/views/dc_forum/_topics.html.erb
drg_blog_news_forum-0.6.3 app/views/dc_forum/_topics.html.erb
drg_blog_news_forum-0.6.1 app/views/dc_forum/_topics.html.erb