Skip to content

Commit

Permalink
Minor view mods
Browse files Browse the repository at this point in the history
  • Loading branch information
divins committed Jul 22, 2011
1 parent ac1b232 commit 3a0dad0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions app/views/user/items/_item.html.slim
Expand Up @@ -5,8 +5,9 @@
=t("categories.#{item.category}")
tr id=dom_id(item) class=item.category
td.actions
= link_to t('.actions.edit'), edit_user_item_path(item)
= link_to t('.actions.delete'), user_item_path(item), method: :delete, confirm: t('.confirmations.delete')
/*= link_to t('.actions.edit'), edit_user_item_path(item)*/
= link_to image_tag("edit.png", alt: t('.actions.edit'), size: '18x18'), edit_user_item_path(item)
= link_to image_tag("delete.png", alt: t('.actions.delete'), size: '18x18'), user_item_path(item), method: :delete, confirm: t('.confirmations.delete')
td.short_description = item.short_description
td.desired_stock = item.desired_stock
td.actual_stock
Expand Down
1 change: 0 additions & 1 deletion app/views/user/items/edit.html.slim
@@ -1,6 +1,5 @@
#edit_item
hgroup
h2=t '.title'
h3=t '.subtitle'

= render 'form'
5 changes: 3 additions & 2 deletions app/views/user/items/index.html.slim
@@ -1,5 +1,6 @@
hgroup
h2= t '.title'
.title
hgroup
h2= t '.title'

#actions
=link_to t('.add'), action: 'new'
Expand Down
1 change: 0 additions & 1 deletion app/views/user/items/new.html.slim
@@ -1,6 +1,5 @@
#new_item
hgroup
h2=t '.title'
h3=t '.subtitle'

= render 'form'

0 comments on commit 3a0dad0

Please sign in to comment.