Skip to content

Commit

Permalink
spec fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Glick committed Apr 23, 2019
1 parent 24e9ddd commit 9cd7efc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/layouts/_header.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
url_params = defined?(service_request) ? { srid: service_request.try(:id) } : {}

%nav.navbar.navbar-default
.container-fluid
.navbar-header
Expand All @@ -27,6 +29,6 @@
- if current_user.present?
%span
= I18n.t('proper.navbar.logged_in', email: current_user.email)
= link_to t(:proper)[:navbar][:logout], destroy_identity_session_path(srid: service_request.try(:id)), method: :delete, class: 'btn btn-warning'
= link_to t(:proper)[:navbar][:logout], destroy_identity_session_path(url_params), method: :delete, class: 'btn btn-warning'
- else
= link_to t(:proper)[:navbar][:login], new_identity_session_path(srid: service_request.try(:id)), class: 'btn btn-primary', id: 'login-link'
= link_to t(:proper)[:navbar][:login], new_identity_session_path(url_params), class: 'btn btn-primary', id: 'login-link'

0 comments on commit 9cd7efc

Please sign in to comment.