email template style & show template style

This commit is contained in:
chihyux 2020-06-20 13:43:43 +08:00
parent 159b0529f2
commit e838ad96bc
2 changed files with 23 additions and 13 deletions

View File

@ -160,10 +160,14 @@
<% paper.epaper_topics.desc(:created_at).each do |topic| %>
<div class="ep-content-item">
<a class="ep-content-title" href="<%= page + "/" + topic.to_param %>" target="_blank"><%= topic.title %></a>
<img src="<%= siteurl + "/" + topic.image.thumb.url %>">
<div class="ep-img" style="width: 40%; float:left;">
<img src="<%= siteurl + "/" + topic.image.thumb.url %>" style="width: 100%;">
</div>
<div class="ep-con" style="width: 58%; float: right;">
<% t = strip_tags(topic.content) %>
<%= topic.description %>
<a class="ep-content-more" href="<%= page + "/" + topic.to_param %>" target="_blank">more</a>
</div>
</div>
<% end %>
</div>

View File

@ -1,16 +1,22 @@
<div class="epaper-show">
{{member_name}}
<img src="{{member_pic}}">
{{member_autobiography}}
<div class="epaper-show"
<div class='paper-content'>
<h3>{{title}}</h3>
<div class="pull-left">
<span>{{category_title}}</span><br>
<span>{{criteria_title}}</span>
<div class='show-controls row'>
<div class='author col-lg-4 col-sm-4'>
<div class='author-img col-lg-1 col-sm-1'><img src="{{member_pic}}"></div>
<div class='author-detail col-lg-11 col-sm-11'>
<p>{{member_name}}</p>
{{member_autobiography}}
</div>
</div>
<div class="paper-meta col-lg-8 col-sm-8">
<span>{{category_title}}</span><br>
<span>{{criteria_title}}</span>
<span date-format="%Y-%m-%d">{{publish_date}}</span><br>
</div>
</div>
<div class="pull-right">
<span date-format="%Y-%m-%d">{{publish_date}}</span><br>
<div class="epaper-content">
<img src="{{image_url}}">
{{content}}
</div>
<div><img src="{{image_url}}" style="width:800px;"></div>
<div class="epaper-content">{{content}}</div>
</div>