app/views/shared/index.html.erb in adminpanel-1.1.0 vs app/views/shared/index.html.erb in adminpanel-1.2.0
- old
+ new
@@ -1,27 +1,27 @@
<% provide(:page_title, @model.display_name) -%>
<div class="row-fluid">
- <%=
- link_to(
+ <%=
+ link_to(
content_tag(:div,
- content_tag(:i, nil, :class => 'icon-plus-sign icon-2x') + content_tag(:span, I18n.t("action.create") + " #{@model.display_name}", nil),
- :class => "btn btn-box span2"),
+ content_tag(:i, nil, :class => 'icon-plus-sign icon-2x') + content_tag(:span, I18n.t("action.create") + " #{@model.display_name}", nil),
+ :class => "btn btn-box span2"),
{
:controller => params[:controller],
:action => "new"
}
)
%>
</div>
<div class="row-fluid">
<div class="widget widget-padding span12">
<div class="widget-header">
- <%= content_tag(:i, nil, :class => @model.icon) %>
- <h5>
- <%= @model.display_name %>
- </h5>
- </div>
+ <%= content_tag(:i, nil, :class => @model.icon) %>
+ <h5>
+ <%= @model.display_name %>
+ </h5>
+ </div>
<div class="widget-body">
<div class="dataTables_wrapper form-inline">
<table id="information-table" class="table table-striped table-bordered dataTable">
<thead><!-- model attributes -->
<tr>
@@ -50,34 +50,34 @@
<td><%= member.send(attribute) -%></td>
<% end %>
<% end %>
<% end %>
<td>
- <%=
- link_to(
- content_tag(:i, nil, :class => 'icon-zoom-in'),
+ <%=
+ link_to(
+ content_tag(:i, nil, :class => 'icon-zoom-in'),
[member],
:title => t("action.show")
)
%>
-
- <%=
- link_to(
- content_tag(:i, nil, :class => 'icon-pencil'),
+
+ <%=
+ link_to(
+ content_tag(:i, nil, :class => 'icon-pencil'),
[:edit, member],
:title => t("action.update") + " #{@model.display_name}"
)
%>
-
- <%=
- link_to(
+
+ <%=
+ link_to(
content_tag(
- :i,
- nil,
+ :i,
+ nil,
:class => 'icon-remove'
- ),
- [member],
+ ),
+ [member],
:title => I18n.t("action.delete"),
:id => "resource-delete",
:method => :delete,
:data => { :confirm => "Eliminar #{@model.display_name}?" }
)
@@ -92,6 +92,6 @@
<div class="span6"></div>
</div>
</div>
</div>
</div>
-</div>
\ No newline at end of file
+</div>