Implement consistent admin interface
* Consistent route/model/controller/view layout * Get rid of unused photos, speakers, dietchoices, social_events controllers * Drop unused :public from Rooms and :description from CallForPapers
This commit is contained in:
parent
f6a87331be
commit
28063129c7
133 changed files with 1461 additions and 1461 deletions
|
|
@ -23,7 +23,6 @@ feature 'Has correct abilities' do
|
|||
expect(page).to have_link('Basics', href: "/admin/conference/#{conference1.short_title}/edit")
|
||||
expect(page).to have_link('Contact', href: "/admin/conference/#{conference1.short_title}/contact/edit")
|
||||
expect(page).to have_link('Commercials', href: "/admin/conference/#{conference1.short_title}/commercials")
|
||||
expect(page).to have_link('Photos', href: "/admin/conference/#{conference1.short_title}/photos")
|
||||
expect(page).to have_link('Events', href: "/admin/conference/#{conference1.short_title}/events")
|
||||
expect(page).to have_link('Registrations', href: "/admin/conference/#{conference1.short_title}/registrations")
|
||||
expect(page).to have_link('Schedule', href: "/admin/conference/#{conference1.short_title}/schedule")
|
||||
|
|
@ -36,7 +35,7 @@ feature 'Has correct abilities' do
|
|||
expect(page).to have_link('Sponsors', href: "/admin/conference/#{conference1.short_title}/sponsors")
|
||||
expect(page).to have_link('Tickets', href: "/admin/conference/#{conference1.short_title}/tickets")
|
||||
expect(page).to have_link('E-Mails', href: "/admin/conference/#{conference1.short_title}/emails")
|
||||
expect(page).to have_link('Call for Papers', href: "/admin/conference/#{conference1.short_title}/callforpapers")
|
||||
expect(page).to have_link('Call for Papers', href: "/admin/conference/#{conference1.short_title}/call_for_paper")
|
||||
expect(page).to have_link('Tracks', href: "/admin/conference/#{conference1.short_title}/tracks")
|
||||
expect(page).to have_link('Event Types', href: "/admin/conference/#{conference1.short_title}/event_types")
|
||||
expect(page).to have_link('Difficulty Levels', href: "/admin/conference/#{conference1.short_title}/difficulty_levels")
|
||||
|
|
@ -76,8 +75,8 @@ feature 'Has correct abilities' do
|
|||
visit admin_conference_emails_path(conference1.short_title)
|
||||
expect(current_path).to eq(admin_conference_emails_path(conference1.short_title))
|
||||
|
||||
visit admin_conference_callforpapers_path(conference1.short_title)
|
||||
expect(current_path).to eq(admin_conference_callforpapers_path(conference1.short_title))
|
||||
visit new_admin_conference_call_for_paper_path(conference1.short_title)
|
||||
expect(current_path).to eq(new_admin_conference_call_for_paper_path(conference1.short_title))
|
||||
|
||||
visit admin_conference_questions_path(conference1.short_title)
|
||||
expect(current_path).to eq(admin_conference_questions_path(conference1.short_title))
|
||||
|
|
@ -94,7 +93,6 @@ feature 'Has correct abilities' do
|
|||
expect(page).to have_link('Basics', href: "/admin/conference/#{conference2.short_title}/edit")
|
||||
expect(page).to_not have_link('Contact', href: "/admin/conference/#{conference2.short_title}/contact/edit")
|
||||
expect(page).to have_link('Commercials', href: "/admin/conference/#{conference2.short_title}/commercials")
|
||||
expect(page).to_not have_link('Photos', href: "/admin/conference/#{conference2.short_title}/photos")
|
||||
expect(page).to have_link('Events', href: "/admin/conference/#{conference2.short_title}/events")
|
||||
expect(page).to_not have_link('Registrations', href: "/admin/conference/#{conference2.short_title}/registrations")
|
||||
expect(page).to have_link('Schedule', href: "/admin/conference/#{conference2.short_title}/schedule")
|
||||
|
|
@ -107,7 +105,7 @@ feature 'Has correct abilities' do
|
|||
expect(page).to_not have_link('Sponsors', href: "/admin/conference/#{conference2.short_title}/sponsors")
|
||||
expect(page).to_not have_link('Supporter Levels', href: "/admin/conference/#{conference2.short_title}/supporter_levels")
|
||||
expect(page).to have_link('E-Mails', href: "/admin/conference/#{conference2.short_title}/emails")
|
||||
expect(page).to have_link('Call for Papers', href: "/admin/conference/#{conference2.short_title}/callforpapers")
|
||||
expect(page).to have_link('Call for Papers', href: "/admin/conference/#{conference2.short_title}/call_for_paper")
|
||||
expect(page).to have_link('Tracks', href: "/admin/conference/#{conference2.short_title}/tracks")
|
||||
expect(page).to have_link('Event Types', href: "/admin/conference/#{conference2.short_title}/event_types")
|
||||
expect(page).to have_link('Difficulty Levels', href: "/admin/conference/#{conference2.short_title}/difficulty_levels")
|
||||
|
|
@ -147,8 +145,8 @@ feature 'Has correct abilities' do
|
|||
visit admin_conference_emails_path(conference2.short_title)
|
||||
expect(current_path).to eq(admin_conference_emails_path(conference2.short_title))
|
||||
|
||||
visit admin_conference_callforpapers_path(conference2.short_title)
|
||||
expect(current_path).to eq(admin_conference_callforpapers_path(conference2.short_title))
|
||||
visit new_admin_conference_call_for_paper_path(conference2.short_title)
|
||||
expect(current_path).to eq(new_admin_conference_call_for_paper_path(conference2.short_title))
|
||||
|
||||
visit admin_conference_questions_path(conference2.short_title)
|
||||
expect(current_path).to eq(root_path)
|
||||
|
|
@ -165,7 +163,6 @@ feature 'Has correct abilities' do
|
|||
expect(page).to have_link('Basics', href: "/admin/conference/#{conference3.short_title}/edit")
|
||||
expect(page).to_not have_link('Contact', href: "/admin/conference/#{conference3.short_title}/contact/edit")
|
||||
expect(page).to have_link('Commercials', href: "/admin/conference/#{conference3.short_title}/commercials")
|
||||
expect(page).to_not have_link('Photos', href: "/admin/conference/#{conference3.short_title}/photos")
|
||||
expect(page).to_not have_link('Events', href: "/admin/conference/#{conference3.short_title}/events")
|
||||
expect(page).to have_link('Registrations', href: "/admin/conference/#{conference3.short_title}/registrations")
|
||||
expect(page).to_not have_link('Schedule', href: "/admin/conference/#{conference3.short_title}/schedule")
|
||||
|
|
@ -178,7 +175,7 @@ feature 'Has correct abilities' do
|
|||
expect(page).to_not have_link('Sponsors', href: "/admin/conference/#{conference3.short_title}/sponsors")
|
||||
expect(page).to_not have_link('Supporter Levels', href: "/admin/conference/#{conference3.short_title}/supporter_levels")
|
||||
expect(page).to_not have_link('E-Mails', href: "/admin/conference/#{conference3.short_title}/emails")
|
||||
expect(page).to_not have_link('Call for papers', href: "/admin/conference/#{conference3.short_title}/callforpapers")
|
||||
expect(page).to_not have_link('Call for papers', href: "/admin/conference/#{conference3.short_title}/call_for_paper")
|
||||
expect(page).to_not have_link('Tracks', href: "/admin/conference/#{conference3.short_title}/tracks")
|
||||
expect(page).to_not have_link('Event types', href: "/admin/conference/#{conference3.short_title}/event_types")
|
||||
expect(page).to_not have_link('Difficulty levels', href: "/admin/conference/#{conference3.short_title}/difficulty_levels")
|
||||
|
|
@ -218,7 +215,7 @@ feature 'Has correct abilities' do
|
|||
visit admin_conference_emails_path(conference3.short_title)
|
||||
expect(current_path).to eq(root_path)
|
||||
|
||||
visit admin_conference_callforpapers_path(conference3.short_title)
|
||||
visit new_admin_conference_call_for_paper_path(conference3.short_title)
|
||||
expect(current_path).to eq(root_path)
|
||||
|
||||
visit admin_conference_questions_path(conference3.short_title)
|
||||
|
|
@ -237,7 +234,6 @@ feature 'Has correct abilities' do
|
|||
expect(page).to have_link('Basics', href: "/admin/conference/#{conference4.short_title}/edit")
|
||||
expect(page).to_not have_link('Contact', href: "/admin/conference/#{conference4.short_title}/contact/edit")
|
||||
expect(page).to have_link('Commercials', href: "/admin/conference/#{conference4.short_title}/commercials")
|
||||
expect(page).to_not have_link('Photos', href: "/admin/conference/#{conference4.short_title}/photos")
|
||||
expect(page).to_not have_link('Events', href: "/admin/conference/#{conference4.short_title}/events")
|
||||
expect(page).to_not have_link('Registrations', href: "/admin/conference/#{conference4.short_title}/registrations")
|
||||
expect(page).to_not have_link('Schedule', href: "/admin/conference/#{conference4.short_title}/schedule")
|
||||
|
|
@ -250,7 +246,7 @@ feature 'Has correct abilities' do
|
|||
expect(page).to_not have_link('Sponsors', href: "/admin/conference/#{conference4.short_title}/sponsors")
|
||||
expect(page).to_not have_link('Supporter Levels', href: "/admin/conference/#{conference4.short_title}/supporter_levels")
|
||||
expect(page).to_not have_link('E-Mails', href: "/admin/conference/#{conference4.short_title}/emails")
|
||||
expect(page).to_not have_link('Call for Papers', href: "/admin/conference/#{conference4.short_title}/callforpapers")
|
||||
expect(page).to_not have_link('Call for Papers', href: "/admin/conference/#{conference4.short_title}/call_for_paper")
|
||||
expect(page).to_not have_link('Tracks', href: "/admin/conference/#{conference4.short_title}/tracks")
|
||||
expect(page).to_not have_link('Event Types', href: "/admin/conference/#{conference4.short_title}/event_types")
|
||||
expect(page).to_not have_link('Difficulty Levels', href: "/admin/conference/#{conference4.short_title}/difficulty_levels")
|
||||
|
|
@ -290,7 +286,7 @@ feature 'Has correct abilities' do
|
|||
visit admin_conference_emails_path(conference4.short_title)
|
||||
expect(current_path).to eq(root_path)
|
||||
|
||||
visit admin_conference_callforpapers_path(conference4.short_title)
|
||||
visit new_admin_conference_call_for_paper_path(conference4.short_title)
|
||||
expect(current_path).to eq(root_path)
|
||||
|
||||
visit admin_conference_questions_path(conference4.short_title)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue