上线缺陷修复

This commit is contained in:
daiao 2018-02-09 16:26:44 +08:00
parent 1a1acaff27
commit 92b54b3bb6
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<% @statistics.each do |statistic| %>
<div class="data_list_item cl pr">
<img src="<%= url_to_avatar(statistic.creator) %>" width="50" class="fl">
<%= image_tag(url_to_avatar(statistic.creator), :width => "50", :height => "50") %>
<% if User.current.id == statistic.user_id || User.current.admin? %>
<div class="homepagePostSetting" style="top: 10px;right: 12px">
<ul>

View File

@ -1,5 +1,5 @@
<div class="banner-big f18 fontGrey3 mb15 fb mt15">
<span>新建</span>
<span><%= params[:action] == "new" ? "新建" : "编辑" %></span>
</div>
<%= render 'form' %>