Skip to content

Commit

Permalink
fix: 平台信息显示
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyc-z committed Aug 31, 2017
1 parent 0b46a8e commit bc55b2d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions app/views/plats/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,16 @@
<%= paginate @pkgs %>
</div>

<% if can? :create, Pkg %>
<div class="plat-info visible-md visible-lg">
<span>
平台: <%=@plat.plat_des_name%> 包数: <%=@plat.pkgs.count%>

<% if @plat.bundle_id.present? %>
包名: <%=@plat.bundle_id%>
<% end %>
<div class="plat-info">
<span>
平台: <%=@plat.plat_des_name%> 包数: <%=@plat.pkgs.count%>
<% if @plat.bundle_id.present? %>
包名: <%=@plat.bundle_id%>
<% end %>
</span>
</div>

</span>
</div>
<% if can? :create, Pkg %>
<div class="visible-md visible-lg pull-right">
<%=link_to '上传', new_plat_pkg_path(@plat), class:"btn btn-primary ui-plat" %>
</div>
Expand Down

0 comments on commit bc55b2d

Please sign in to comment.