Skip to content

Commit

Permalink
show groups if we're using them
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Aug 26, 2009
1 parent 7fa7c27 commit 642e35e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/admin/locations/_location.html.haml
Expand Up @@ -3,4 +3,8 @@
= link_to image("location", :class => "icon", :alt => 'page-icon', :title => '') + '<span class="title">' + h(location.name) +'</span>', edit_admin_location_url(location)
%small.info
= h location.full_address

- if config['locations.use_groups?']
%td
= location.group
%td.remove= link_to image('remove', :alt => 'remove location'), remove_admin_location_path(location)
3 changes: 3 additions & 0 deletions app/views/admin/locations/index.html.haml
Expand Up @@ -7,6 +7,9 @@
%tr
%th.snippet
Location
- if config['locations.use_groups?'] && !@locations.blank?
%th
Group
%th.modify
Modify
%tbody
Expand Down

0 comments on commit 642e35e

Please sign in to comment.