Skip to content

Commit

Permalink
Fix dictionary term path in terms/show
Browse files Browse the repository at this point in the history
  • Loading branch information
wildjcrt committed Sep 10, 2024
1 parent 50a348b commit 90b13b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/terms/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
else
"terms/#{part}"
end
term_path = "dictionaries/#{dictionary.id}/#{term_path}" if dictionary.present?
term_path = "dictionaries/#{@dictionary.id}/#{term_path}" if @dictionary.present?

term_html += "<a href=\"/#{term_path}\" class=\"border-b border-gray-300 text-gray-800 hover:bg-gray-300 focus:bg-gray-300 hover:text-[#0070a3] focus:text-[#0070a3] focus:outline focus:outline-1 focus:outline-[#69d2fc]\">#{part}</a>"
else
Expand Down Expand Up @@ -104,7 +104,7 @@
else
"terms/#{part}"
end
term_path = "dictionaries/#{dictionary.id}/#{term_path}" if dictionary.present?
term_path = "dictionaries/#{@dictionary.id}/#{term_path}" if @dictionary.present?

alt_html += "<a href=\"/#{term_path}\" class=\"border-b border-gray-300 text-gray-800 hover:bg-gray-300 focus:bg-gray-300 hover:text-[#0070a3] focus:text-[#0070a3] focus:outline focus:outline-1 focus:outline-[#69d2fc]\">#{part}</a>"
else
Expand Down Expand Up @@ -136,7 +136,7 @@
else
"terms/#{part}"
end
term_path = "dictionaries/#{dictionary.id}/#{term_path}" if dictionary.present?
term_path = "dictionaries/#{@dictionary.id}/#{term_path}" if @dictionary.present?

ref_html += "<a href=\"/#{term_path}\" class=\"border-b border-gray-300 text-gray-800 hover:bg-gray-300 focus:bg-gray-300 hover:text-[#0070a3] focus:text-[#0070a3] focus:outline focus:outline-1 focus:outline-[#69d2fc]\">#{part}</a>"
else
Expand Down

0 comments on commit 90b13b9

Please sign in to comment.