Commit 1397dbb1 authored by Nivaldo Neto's avatar Nivaldo Neto

show external activity data

parent 2a600941
......@@ -66,12 +66,50 @@
<li><%= exauthors %></li>
<% end %>
</ul>
<% if @activity.activity_type == "internal" %>
<div class="activity-subtitle">Descrição</div>
<div class="activity-subtitle">Descrição</div>
<p class="activity-text">
<%= @activity.description %>
</p>
<% if @activity.activity_type == "external" %>
<div class="activity-subtitle">Escopos</div>
<p class="activity-text"></p>
<ul>
<% @activity.scopes.each do |scope| %>
<li><%= scope[:title] %></li>
<% end %>
</ul>
<div class="activity-subtitle">Público Alvo</div>
<p class="activity-text"></p>
<ul>
<% @activity.audiences.each do |audience| %>
<li><%= audience[:name] %></li>
<% end %>
</ul>
<div class="activity-subtitle">Tipos de Espaço</div>
<p class="activity-text"></p>
<ul>
<% @activity.space_types.each do |space_type| %>
<li><%= space_type[:title] %></li>
<% end %>
</ul>
<div class="activity-subtitle">Pré-Requisitos</div>
<p class="activity-text">
<%= @activity.requirements %>
</p>
<div class="activity-subtitle">Copyright</div>
<p class="activity-text">
<%= @activity.copyright %>
</p>
<div class="activity-subtitle">Tipo de Licença</div>
<p class="activity-text">
<%= @activity.license[:title] %>
</p>
<div class="activity-subtitle">Link Externo</div>
<p class="activity-text">
<%= link_to(@activity.external_link, (@activity.external_link), target: '_blank') %>
</p>
<% end %>
<% if @activity.activity_type == "internal" %>
<div class="activity-subtitle">Motivação</div>
<p class="activity-text">
<%= @activity.motivation %>
......@@ -202,12 +240,6 @@
<%= @activity.references.html_safe %>
</p>
<% end %>
<% if @activity.activity_type == "external" %>
<div class="activity-subtitle">Link Externo</div>
<p class="activity-text">
<%= link_to(@activity.external_link, (@activity.external_link), target: '_blank') %>
</p>
<% end %>
<div class="activity-subtitle">Atualizações</div>
<div class="activity-text">
<strong>Atividade inserida em:</strong>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment