Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
compare: master
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 10, 2012
@yuritomanek yuritomanek Tidying up
Please, lets use proper haml indenting.

Signed-off-by: Yuri Tomanek <yuri@tomanek.com.au>
d2eb6e1
View
32 lib/generators/gluttonberg/resource/templates/backend_view_index.html.haml
@@ -20,14 +20,12 @@
- form_tag(admin_<%=plural_name%>_path, :method => :get , :id => "list_search_form") do
= text_field_tag :query, params[:query]
= submit_tag "Search" , :class => "button"
-
<%end%>
- if @<%= plural_name %>.empty?
%p.empty
No <%= plural_class_name %>
- else
-
<% if draggable? %>
%table{:id => 'pages_table', :class => "table table-bordered #{(can?(:reorder , <%=class_name%>) ? "#{drag_tree_table_class} " : " " )}", :cellpadding => 0, :cellspacing => 0, :rel => "" , :summary => "<%= plural_name %>" , :rel => drag_tree_url }
<%else%>
@@ -36,13 +34,19 @@
%thead
%tr
<% if draggable? %>
- %th Name
- %th Published At
- %th Created At
+ %th
+ Name
+ %th
+ Published At
+ %th
+ Created At
<%else %>
- %th= sortable_column("<%= attributes.find{|attr| attr.name == "name"}.blank? ? "title" : "name" %>" , "Name")
- %th= sortable_column("published_at" , "Published At")
- %th= sortable_column("created_at" , "Created At")
+ %th
+ = sortable_column("<%= attributes.find{|attr| attr.name == "name"}.blank? ? "title" : "name" %>" , "Name")
+ %th
+ = sortable_column("published_at" , "Published At")
+ %th
+ = sortable_column("created_at" , "Created At")
<%end %>
%th.controls Controls
%tbody
@@ -69,13 +73,17 @@
Actions
%span.caret
%ul.dropdown-menu
- %li= link_to "Show", admin_<%= singular_name %>_path(<%= singular_name %>) , :class => ""
- %li= link_to "Edit", edit_admin_<%= singular_name %>_path(<%= singular_name %>) , :class => ""
+ %li
+ = link_to "Show", admin_<%= singular_name %>_path(<%= singular_name %>) , :class => ""
+ %li
+ = link_to "Edit", edit_admin_<%= singular_name %>_path(<%= singular_name %>) , :class => ""
%li.divider
- %li= link_to "Duplicate", duplicate_admin_<%= singular_name %>_path(<%= singular_name %>) , :class => ""
+ %li
+ = link_to "Duplicate", duplicate_admin_<%= singular_name %>_path(<%= singular_name %>) , :class => ""
- if can? :destroy , <%= class_name %>
%li.divider
- %li= link_to "Delete", delete_admin_<%= singular_name %>_path(<%= singular_name %>) , :class => ""
+ %li
+ = link_to "Delete", delete_admin_<%= singular_name %>_path(<%= singular_name %>) , :class => ""
<% unless draggable? %>
= will_paginate @<%= plural_name %>

No commit comments for this range

Something went wrong with that request. Please try again.