normalise some json responses
This commit is contained in:
1
app/views/admin/candidate/resend_welcome.json.erb
Normal file
1
app/views/admin/candidate/resend_welcome.json.erb
Normal file
@ -0,0 +1 @@
|
||||
{ "message" : "Email queued!" }
|
5
app/views/admin/vote/approve.json.erb
Normal file
5
app/views/admin/vote/approve.json.erb
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"message" : "Interview requested!",
|
||||
"requestCopy" : "Requested",
|
||||
"declineCopy" : "Decline Interview"
|
||||
}
|
5
app/views/admin/vote/decline.json.erb
Normal file
5
app/views/admin/vote/decline.json.erb
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"message" : "Interview declined.",
|
||||
"requestCopy" : "Request Interview",
|
||||
"declineCopy" : "Declined"
|
||||
}
|
6
app/views/admin/vote/down.json.erb
Normal file
6
app/views/admin/vote/down.json.erb
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"message" : "Vote Counted",
|
||||
"upCount" : <%= @candidate.votes.yea.count %>,
|
||||
"downCount" : <%= @candidate.votes.nay.count %>,
|
||||
"myVote" : "nay"
|
||||
}
|
6
app/views/admin/vote/up.json.erb
Normal file
6
app/views/admin/vote/up.json.erb
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"message" : "Vote Counted",
|
||||
"upCount" : <%= @candidate.votes.yea.count %>,
|
||||
"downCount" : <%= @candidate.votes.nay.count %>,
|
||||
"myVote" : "yea"
|
||||
}
|
Reference in New Issue
Block a user