Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1743 from CristinaRO/issue-3994-email-visible
Issue 3994 email visible on assignment page to a non-mod user
- Loading branch information
Showing
4 changed files
with
380 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<% unless challenge_signup.offers.empty? %> | ||
<% unless challenge_signup.offers.empty? %> | ||
|
||
<!-- expects local variable "challenge_signup" --> | ||
<div class="offers listbox group"> | ||
<h3 class="heading"> | ||
<%= ts("Offers") %> | ||
<% if @challenge_assignment %> | ||
<%= ts("by %{offerer}", :offerer => @challenge_assignment.offer_byline) %> | ||
<% user = @challenge_assignment.try(:offer_signup).try(:pseud).try(:user) %> | ||
<% if user %><%= mailto_link user, :subject => "[#{h(@collection.title)}] Message from Collection Maintainer" %><% end %> | ||
<% if user && @challenge.user_allowed_to_see_assignments?(current_user) %> | ||
<%= mailto_link user, :subject => "[#{h(@collection.title)}] Message from Collection Maintainer" %> | ||
<% end %> | ||
<% end %> | ||
</h3> | ||
|
||
<ol class="index group"> | ||
<% challenge_signup.offers.each_with_index do |offer, index| %> | ||
<%= render "prompts/prompt_blurb", :prompt => offer, :index => index %> | ||
<% end %> | ||
</ol> | ||
</div> | ||
<% end %> | ||
|
||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<% unless challenge_signup.requests.empty? %> | ||
<% unless challenge_signup.requests.empty? %> | ||
|
||
<!-- expects local variable "challenge_signup" --> | ||
<div class="requests listbox group"> | ||
<h3 class="heading"> | ||
<%= ts("Requests") %> | ||
<% if @challenge_assignment %> | ||
<%= ts("by %{requester}", :requester => @challenge_assignment.request_byline) %> | ||
<% user = @challenge_assignment.try(:request_signup).try(:pseud).try(:user) %> | ||
<% if user %><%= mailto_link user, :subject => "[#{h(@collection.title)}] Message from Collection Maintainer" %><% end %> | ||
<% if user && @challenge.user_allowed_to_see_assignments?(current_user) %> | ||
<%= mailto_link user, :subject => "[#{h(@collection.title)}] Message from Collection Maintainer" %> | ||
<% end %> | ||
<% end %> | ||
</h3> | ||
|
||
<ol class="index group"> | ||
<% challenge_signup.requests.each_with_index do |request, index| %> | ||
<%= render "prompts/prompt_blurb", :prompt => request, :index => index %> | ||
<% end %> | ||
</ol> | ||
</div> | ||
|
||
<% end %> | ||
<% end %> |
Oops, something went wrong.