#1857 Display processing alias/implications on wikis
This commit is contained in:
@@ -14,19 +14,19 @@ class WikiPagePresenter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def consequent_tag_aliases
|
def consequent_tag_aliases
|
||||||
@consequent_tag_aliases ||= TagAlias.where("status = 'active' and consequent_name = ?", wiki_page.title)
|
@consequent_tag_aliases ||= TagAlias.where("status in ('active', 'processing') and consequent_name = ?", wiki_page.title)
|
||||||
end
|
end
|
||||||
|
|
||||||
def antecedent_tag_alias
|
def antecedent_tag_alias
|
||||||
@antecedent_tag_alias ||= TagAlias.where("status = 'active' and antecedent_name = ?", wiki_page.title).first
|
@antecedent_tag_alias ||= TagAlias.where("status in ('active', 'processing') and antecedent_name = ?", wiki_page.title).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def consequent_tag_implications
|
def consequent_tag_implications
|
||||||
@consequent_tag_implications ||= TagImplication.where("status = 'active' and consequent_name = ?", wiki_page.title)
|
@consequent_tag_implications ||= TagImplication.where("status in ('active', 'processing') and consequent_name = ?", wiki_page.title)
|
||||||
end
|
end
|
||||||
|
|
||||||
def antecedent_tag_implications
|
def antecedent_tag_implications
|
||||||
@antecedent_tag_implications ||= TagImplication.where("status = 'active' and antecedent_name = ?", wiki_page.title)
|
@antecedent_tag_implications ||= TagImplication.where("status in ('active', 'processing') and antecedent_name = ?", wiki_page.title)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Produce a formatted page that shows the difference between two versions of a page.
|
# Produce a formatted page that shows the difference between two versions of a page.
|
||||||
|
|||||||
Reference in New Issue
Block a user