Skip to content

Commit

Permalink
Implement invitation show view and remove old accept/reject views
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Nov 28, 2024
1 parent c7b8cf5 commit eef9093
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
9 changes: 7 additions & 2 deletions app/controllers/invitations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
class InvitationsController < ApplicationController

def show
@invitation = Invitation.find_by_token(params[:token])
end

def accept
# find invitation by token
# invitation.accept
# redirect to back to self with a flash message
# redirect to invitation.html_url
end

def reject
# find invitation by token
# invitation.reject
# redirect back to self with a flash message
# redirect back invitation.html_url
end
end
7 changes: 0 additions & 7 deletions app/views/invitations/accept.html.erb

This file was deleted.

7 changes: 0 additions & 7 deletions app/views/invitations/reject.html.erb

This file was deleted.

9 changes: 9 additions & 0 deletions app/views/invitations/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<h1>Accept or reject the invitation!</h1>

<p>Accept confirmation button</p>

<p>or they can update their funding.yml and we'll check it again</p>

<p>also an option to reject</p>

<p>if it's been accepted/rejected already then show a message</p>

0 comments on commit eef9093

Please sign in to comment.