Skip to content

Commit

Permalink
Display authors for Track models
Browse files Browse the repository at this point in the history
  • Loading branch information
BGMP committed May 6, 2024
1 parent 0ccd5cb commit c768048
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/tracks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@
text-decoration: none;
}
}

.author {
color: #787476;
}
}
2 changes: 2 additions & 0 deletions app/views/tracks/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
.caption{:style => "text-align: center;"}
%h1.lead
= track.name
%h6.author
= t("rva.tracks.made-by", :author_name => track.author)

= paginate @tracks
4 changes: 4 additions & 0 deletions app/views/tracks/show.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
= @track.name
%br
%dl.dl-horizontal
%dt
= t("misc.author")
%dd
= @track.author
%dt
= t("rva.tracks.format.short-name.title")
%dd
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ en:
season: "Season"
title: "The RVA Tracks"
no-tracks: "No tracks to display"
made-by: "by: %{author_name}"
format:
title: "Format"
short-name:
Expand Down Expand Up @@ -1051,6 +1052,7 @@ en:
unknown: "Unknown"
custom: "Custom"
stock: "Stock"
author: "Author"
weekdays:
monday: "Monday"
tuesday: "Tuesday"
Expand Down

0 comments on commit c768048

Please sign in to comment.