d66066f7cb
Currently, we assume a "last_version" always exists for a wiki page. In production, this is not always true. So, guard uses of it with a null check.
6 lines
274 B
Text
6 lines
274 B
Text
%li
|
|
= link_to wiki_page.title, project_wiki_path(@project, wiki_page)
|
|
%small (#{wiki_page.format})
|
|
.float-right
|
|
- if wiki_page.last_version
|
|
%small= (s_("Last edited %{date}") % { date: time_ago_with_tooltip(wiki_page.last_version.authored_date) }).html_safe
|