Skip to content

Commit

Permalink
Merge pull request #5753 from fjordllc/feature/add-creating-regular-e…
Browse files Browse the repository at this point in the history
…vent-link-to-events

イベント一覧に定期イベント作成リンクを追加
  • Loading branch information
komagata authored Nov 18, 2022
2 parents d6dc035 + 901dc37 commit 8badf6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions app/views/events/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ header.page-header
= link_to new_event_path, class: 'a-button is-md is-secondary is-block' do
i.fa-regular.fa-plus
| イベント作成
.page-header-actions__item
= link_to new_regular_event_path, class: 'a-button is-md is-secondary is-block' do
i.fa-regular.fa-plus
| 定期イベント作成

= render 'events/tabs'

Expand Down
5 changes: 0 additions & 5 deletions test/system/events_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
require 'application_system_test_case'

class EventsTest < ApplicationSystemTestCase
test 'show link to create new event' do
visit_with_auth events_path, 'komagata'
assert_link 'イベント作成'
end

test 'users except admin cannot publish a event' do
visit_with_auth new_event_path, 'kimura'
page.assert_no_selector("input[value='作成']")
Expand Down

0 comments on commit 8badf6d

Please sign in to comment.