fix for empty categories
This commit is contained in:
parent
40728d31c8
commit
97120b7a72
|
@ -5,9 +5,13 @@
|
||||||
<% if current_user.is_admin? or current_user.is_manager?(@module_app) %>
|
<% if current_user.is_admin? or current_user.is_manager?(@module_app) %>
|
||||||
<div class="bottomnav clearfix" style="left: 81px;">
|
<div class="bottomnav clearfix" style="left: 81px;">
|
||||||
<div class="action pull-right">
|
<div class="action pull-right">
|
||||||
|
<% if @categories.count == 0 %>
|
||||||
|
<a class="btn btn-primary" href="/admin/module_apps/<%= @module_app.id.to_s %>/categories"> <%= t(:categories) %></a>
|
||||||
|
<% else %>
|
||||||
<a data-title="<%= t("text_marquee.new") %>" data-id="new" data-fx="fade" class="btn btn-primary open-slide new-marquee" href="#">
|
<a data-title="<%= t("text_marquee.new") %>" data-id="new" data-fx="fade" class="btn btn-primary open-slide new-marquee" href="#">
|
||||||
<i class="icon-plus"></i> <%= t("text_marquee.new") %>
|
<i class="icon-plus"></i> <%= t("text_marquee.new") %>
|
||||||
</a>
|
</a>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination pagination-centered"></div>
|
<div class="pagination pagination-centered"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue