Hide paper title when no title.
This commit is contained in:
parent
5b5ea57582
commit
cfa596a3e7
|
@ -177,14 +177,16 @@
|
|||
<img src="<%= img_src %>" alt="<%= paper.title %>" title="<%= paper.title %>" />
|
||||
<% end %>
|
||||
<div class="ep-info">
|
||||
<div class="ep-info-title">
|
||||
<span class="field-head">
|
||||
<%= t('e_paper.title') %>:
|
||||
</span>
|
||||
<h3 class="epaper-show-title">
|
||||
<a class="ep-content-title" href="<%= page + "/" + paper.to_param + "?method=topics" %>" target="_blank"><span><%= paper.title %></span></a>
|
||||
</h3>
|
||||
</div>
|
||||
<% if paper.title.present? %>
|
||||
<div class="ep-info-title">
|
||||
<span class="field-head">
|
||||
<%= t('e_paper.title') %>:
|
||||
</span>
|
||||
<h3 class="epaper-show-title">
|
||||
<a class="ep-content-title" href="<%= page + "/" + paper.to_param + "?method=topics" %>" target="_blank"><span><%= paper.title %></span></a>
|
||||
</h3>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="ep-info-description">
|
||||
<span class="field-head">
|
||||
<%= t('e_paper.description') %>:
|
||||
|
@ -220,11 +222,13 @@
|
|||
<img src="<%= img_src %>" alt="<%= paper.title %>" title="<%= paper.title %>" />
|
||||
<% end %>
|
||||
<div class="ep-info">
|
||||
<div class="ep-info-title">
|
||||
<h3 class="epaper-show-title">
|
||||
<a class="ep-content-title" href="<%= page + "/" + paper.to_param + "?method=topics" %>" target="_blank"><span><%= paper.title %></span></a>
|
||||
</h3>
|
||||
</div>
|
||||
<% if paper.title.present? %>
|
||||
<div class="ep-info-title">
|
||||
<h3 class="epaper-show-title">
|
||||
<a class="ep-content-title" href="<%= page + "/" + paper.to_param + "?method=topics" %>" target="_blank"><span><%= paper.title %></span></a>
|
||||
</h3>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="ep-info-description">
|
||||
<%= paper.content.html_safe %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue