Skip to content

Commit

Permalink
Refactor and tweak button location, improve out of the box styling fo…
Browse files Browse the repository at this point in the history
…r re-users
  • Loading branch information
wrightmartin committed Aug 10, 2021
1 parent 54e1289 commit 4ca5277
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/views/request/_reply.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="action-bar__reply">
<% if last_response.nil? %>
<%= link_to _("Send a followup"), new_request_followup_path(:request_id => info_request.id, :anchor => 'followup'),
:class => "button" %>
:class => "action-bar__reply-button" %>
<% else %>
<%= link_to _("Write a reply"), new_request_incoming_followup_path(:request_id => info_request.id, :incoming_message_id => last_response.id, :anchor => 'followup'),
:class => "button" %>
:class => "action-bar__reply-button" %>
<% end %>
</div>
11 changes: 3 additions & 8 deletions app/views/request/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,15 @@
locals: { info_request: @info_request,
last_response: @last_response } %>
<% else %>
<%= render partial: 'request/reply',
locals: { info_request: @info_request,
last_response: @last_response } %>
<%= render partial: 'request/after_actions',
locals: { info_request: @info_request,
track_thing: @track_thing,
show_owner_update_status_action: @show_owner_update_status_action,
show_other_user_update_status_action: @show_other_user_update_status_action,
last_response: @last_response } %>

<%= render partial: 'request/reply',
locals: { info_request: @info_request,
track_thing: @track_thing,
show_owner_update_status_action: @show_owner_update_status_action,
show_other_user_update_status_action: @show_other_user_update_status_action,
last_response: @last_response } %>

<%= render partial: 'track/tracking_links_simple',
locals: { track_thing: @track_thing,
user: @user,
Expand Down

0 comments on commit 4ca5277

Please sign in to comment.