mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
add history link
This commit is contained in:
parent
da16bd48d8
commit
ac103e15f3
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ defmodule PhilomenaWeb.Page.HistoryController do
|
|||
alias Philomena.Repo
|
||||
import Ecto.Query
|
||||
|
||||
plug :load_resource, model: StaticPage, id_name: "page_id", nid_field: "slug", persisted: true
|
||||
plug :load_resource, model: StaticPage, id_name: "page_id", id_field: "slug", persisted: true
|
||||
|
||||
def index(conn, _params) do
|
||||
page = conn.assigns.static_page
|
||||
|
|
|
@ -5,7 +5,7 @@ p
|
|||
|
||||
== @static_page.body
|
||||
|
||||
/= link_to 'Revision history', static_page_versions_path(@static_page)
|
||||
= link "Revision history", to: Routes.page_history_path(@conn, :index, @static_page)
|
||||
|
||||
/- if can? :manage, StaticPage
|
||||
br
|
||||
|
|
Loading…
Reference in a new issue