显示详情样式修改

This commit is contained in:
caishi 2018-02-09 16:36:42 +08:00
parent 9c02de788d
commit 0f83e7712e
3 changed files with 9 additions and 12 deletions

View File

@ -14,7 +14,7 @@
</div>
<% end %>
<div class="fl data_itemMain">
<span class="f16 mr10"> <%= link_to "#{statistic.name}", statistic %> </span>
<span class="f16 mr10"> <%= link_to "#{statistic.name}", statistic ,:class => "color-grey3" %> </span>
<p class="f13 mt5 mb5 data_detail"><%= statistic.description.try(:html_safe) %></p>
<div class="f13 mt7">
<%= render :partial => 'attachments',:locals => {:attachments => statistic.try(:attachments)} %>

View File

@ -3,24 +3,22 @@
'/editormd/lib/flowchart.min.js','/editormd/lib/jquery.flowchart.min.js','/editormd/editormd.js' %>
<div class="data_showdetail mb20">
<div class="detail_part mt15">
<label>数据类别名称:</label>
<%= @statistic.name %>
<img src="<%= url_to_avatar(@statistic.creator)%>" style="border-radius: 50%" width="50" class="fl" />
<div class="fl color-grey8 ml15">
<P class="color-grey3 f16 mb5"><%= @statistic.name %></P>
<p class="f14"><span class="mr20"><%= @statistic.creator.show_name %></span><span><%= format_time @statistic.created_at %></span></p>
</div>
<% if User.current.id == @statistic.user_id || User.current.admin? %>
<%= link_to '返回', statistics_path ,:class=>"grey_btn fr mr45 ml15", :style=>"padding:4px 10px" %>
<%= link_to '编辑', edit_statistic_path(@statistic) ,:class => "submit_btn fr" %>
<% end %>
</div>
<div class="cl detail_part">
<label class="mt20">描述:</label>
<div class="cl detail_part ml45">
<div id="statistic_description" style="width: 80%;">
<textarea class="detail_des fl" style="display: none;width: 85%"><%= @statistic.description %></textarea>
</div>
</div>
<div class="detail_part">
<label>添加时间:</label>
<%= format_time @statistic.created_at %>
</div>
<%# 附件局部刷新 %>
<% if @attachments.present? %>
<div class="detail_part cl">
@ -30,9 +28,6 @@
</div>
</div>
<% end %>
<div class="detail_part">
<label>&nbsp;</label>
</div>
</div>
<script>
$(document).ready(function() {

View File

@ -152,6 +152,8 @@ h4{ font-size:14px;}/*color:#3b3b3b;*/
.maxh300 { max-height: 300px; }
.lh18 { line-height: 18px;}
/* Font & background Color */
.color-grey3{color:#333!important;}
.color-grey8{color: #888!important;}
a.b_grey{ background: #F5F5F5;}
a.b_dgrey{ background: #CCC;}
a.c_orange{color:#ff5722;}