Skip to content

Commit

Permalink
Changed wording and paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Youch committed May 25, 2010
1 parent 6bf5a85 commit 172031f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/controllers/members_controller.rb
Expand Up @@ -164,10 +164,10 @@ def display_targets_table(display = true)

# Members editing
def index
cms_page_path [], "People"

return redirect_to(:action => 'segments') if self.segment && ! self.segment.ready?

cms_page_path ["People"], self.segment ? self.segment.name : 'Everyone'.t

segmentations

display_targets_table(false)
Expand Down Expand Up @@ -260,7 +260,7 @@ def create_segment
def edit_segment
@segment = UserSegment.find params[:path][0]

cms_page_path ['People', 'User Lists'], '%s User List' / @segment.name
cms_page_path ['People', 'User Lists', [@segment.name, url_for(:action => 'index', :path => @segment.id)]], 'Edit List'

@builder = UserSegment::OperationBuilder.new nil

Expand All @@ -281,7 +281,7 @@ def edit_segment
def copy_segment
segment_to_copy = UserSegment.find params[:path][0]

cms_page_path ['People', 'User Lists'], 'Copy %s User List' / segment_to_copy.name
cms_page_path ['People', 'User Lists', [segment_to_copy.name, url_for(:action => 'index', :path => segment_to_copy.id)]], 'Copy List'

@builder = UserSegment::OperationBuilder.new nil

Expand Down
2 changes: 1 addition & 1 deletion app/views/members/segments.html.erb
@@ -1,5 +1,5 @@
<% action_panel :handler => 'members' do |p| -%>
<%= p.link "Create a Segment",:icon => 'add.gif', :action => 'create_segment' %>
<%= p.link "Create a User List",:icon => 'add.gif', :action => 'create_segment' %>
<% end -%>

<hr/>
Expand Down

0 comments on commit 172031f

Please sign in to comment.