Skip to content
Snippets Groups Projects
Commit 9883616f authored by farhatahmad's avatar farhatahmad Committed by Jesus Federico
Browse files

Fixed issue with visibility redirected and changed the 'no recordings' string...

Fixed issue with visibility redirected and changed the 'no recordings' string for the recordings page (#361)
parent 16def655
Branches
No related tags found
No related merge requests found
......@@ -168,7 +168,9 @@ class RoomsController < ApplicationController
}
res = @room.update_recording(params[:record_id], meta)
redirect_to @room if res[:updated]
# Redirects to the page that made the initial request
redirect_to request.referrer if res[:updated]
end
# DELETE /:room_uid/:record_id
......
......@@ -71,4 +71,4 @@
</div>
</div>
<%= render "shared/sessions", recordings: @recordings, only_public: false %>
<%= render "shared/sessions", recordings: @recordings, only_public: false, user_recordings: false %>
......@@ -40,4 +40,4 @@
</div>
</div>
<%= render "shared/sessions", recordings: @room.public_recordings, only_public: true %>
<%= render "shared/sessions", recordings: @room.public_recordings, only_public: true, user_recordings: false %>
......@@ -50,7 +50,11 @@
<% if recordings.empty? %>
<tr>
<td colspan="7" class="text-center h4 p-6 font-weight-normal">
<% if user_recordings %>
<%= t("recording.no_user_recordings") %>
<% else %>
<%= t("recording.no_recordings", inject: only_public ? t("recording.visibility.public").downcase + " " : "") %>
<% end %>
</td>
</tr>
<% else %>
......
......@@ -18,4 +18,4 @@
# without losing all css
%>
<%= render "shared/sessions", recordings: @recordings, only_public: false %>
<%= render "shared/sessions", recordings: @recordings, only_public: false, user_recordings: true %>
......@@ -146,6 +146,7 @@ en:
recording:
email: Email Recording
no_recordings: This room has no %{inject}recordings.
no_user_recordings: You currently have no recordings.
no_matched_recordings: No %{inject} recordings match your search.
recorded_on: Recorded on %{date}
table:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment