Skip to content

Commit

Permalink
Fix #1840 (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlevy committed Apr 27, 2024
1 parent 5142cbc commit 6919bd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/concerns/backlinkable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ def backlinks_agenda_events(website)
)
end

def backlinks_portfolio_projects(website)
backlinks(
"Communication::Website::Portfolio::Project",
website
)
end

protected

def backlinks(kind, website)
Expand Down
5 changes: 5 additions & 0 deletions app/views/admin/application/connections/_backlinks.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ backlinks:
<% @about.backlinks_agenda_events(@website).each do |element| %>
- path: "<%= element.current_permalink_in_website(@website)&.path %>"
file: "<%= element.git_path_relative %>"
<% end %>
projects:
<% @about.backlinks_portfolio_projects(@website).each do |element| %>
- path: "<%= element.current_permalink_in_website(@website)&.path %>"
file: "<%= element.git_path_relative %>"
<% end %>

0 comments on commit 6919bd2

Please sign in to comment.