Skip to content

Commit

Permalink
fixed time value nil (publiclab#8733)
Browse files Browse the repository at this point in the history
* fixed time value nil

fixes publiclab#8732

* Update index.html.erb
  • Loading branch information
jywarren authored and billymoroney1 committed Dec 28, 2021
1 parent 08765ec commit eff510f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/wiki/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<% if params[:controller] == "tag" %>

<h3 style="margin-top:0;"><%= raw translation('wiki.index.wiki_pages_tagged_with', :tag => params[:id]) %></h3>
<h3 style="margin-top:0;"><%= raw translation('wiki.index.wiki_pages_tagged_with', tag: params[:id]) %></h3>

<% elsif params[:action] == "author" %>

<h3 style="margin-top:0;"><%= raw translation('wiki.index.wiki_pages_by', :url1 => "/people/"+@user.name, :user => @user.name, :note_length => @user.notes.size, :time => time_ago_in_words(@user.notes.first&.created_at)) || '-' %></h3>
<h3 style="margin-top:0;"><%= raw translation('wiki.index.wiki_pages_by', url1: "/people/"+@user.name, user: @user.name, note_length: @user.notes.size, time: @user.notes.first ? time_ago_in_words(@user.notes.first&.created_at) : '-') %></h3>

<% else %>

Expand Down

0 comments on commit eff510f

Please sign in to comment.