Skip to content

Commit

Permalink
deed: fix regression with domain names
Browse files Browse the repository at this point in the history
Fixes: #1929
  • Loading branch information
diegoviola committed Jul 31, 2020
1 parent 5e21d4b commit 7fa7c89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/deed/_deed.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

-user_name = deed.user.display_name if deed.user

-user = link_to(user_name, user_profile_url(deed.user, only_path: !mailer))
-page = deed.page.nil? ? '' : link_to(deed.page.title, collection_transcribe_page_url(deed.page.collection.owner, deed.page.collection, deed.page.work, deed.page, only_path: !mailer))
-article = deed.article.nil? ? '' : link_to(deed.article.title, collection_article_show_url(deed.article.collection.owner, deed.article.collection, deed.article, only_path: !mailer))
-user = link_to(user_name, user_profile_url(deed.user, only_path: true))
-page = deed.page.nil? ? '' : link_to(deed.page.title, collection_transcribe_page_url(deed.page.collection.owner, deed.page.collection, deed.page.work, deed.page, only_path: true))
-article = deed.article.nil? ? '' : link_to(deed.article.title, collection_article_show_url(deed.article.collection.owner, deed.article.collection, deed.article, only_path: true))
-if(!deed.work.nil? && !deed.work.collection.nil? )
-work = link_to(deed.work.title, collection_read_work_url(deed.work.collection.owner, deed.work.collection, deed.work, only_path: !mailer))
-work = link_to(deed.work.title, collection_read_work_url(deed.work.collection.owner, deed.work.collection, deed.work, only_path: true))
-unless(deed.collection.nil?)
-collection = link_to(deed.collection.title, collection_url(deed.collection.owner, deed.collection, only_path: !mailer ))
-collection = link_to(deed.collection.title, collection_url(deed.collection.owner, deed.collection, only_path: true))

-output = "#{user} "

Expand Down Expand Up @@ -64,7 +64,7 @@

-if(long_view && !deed.work.nil?)
-if deed.work.collection
-work = link_to(deed.work.title, collection_read_work_url(deed.work.collection.owner, deed.work.collection, deed.work, only_path: !mailer))
-work = link_to(deed.work.title, collection_read_work_url(deed.work.collection.owner, deed.work.collection, deed.work, only_path: true))
-else
-work = deed.work.title
-output += t('.in_the_work', work: work)
Expand Down

0 comments on commit 7fa7c89

Please sign in to comment.