Skip to content

Commit

Permalink
Add levels in talk details (#107)
Browse files Browse the repository at this point in the history
* Add levels in talk details

* style(programme, schedule): renommage de la propriété "niveau" par "level" pour éviter le franglais dans un code anglophone

---------

Co-authored-by: Luc Sorel-Giffo <[email protected]>
  • Loading branch information
gsalaun1 and lucsorel authored Jun 24, 2024
1 parent 7185224 commit 3911475
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 100 deletions.
4 changes: 3 additions & 1 deletion static/js/programme.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@
start: talk.event_start,
end: talk.event_end,
color: categoryColors[talk.event_type] || categoryColors['Autre...'],
room: rooms[talk.venue]
room: rooms[talk.venue],
level: talk.level
}, _.pick(talk, ['video_url', 'files_url', 'slides_url']));
}), function(talk) {
return _.all(filters, function(filter, name) {
Expand Down Expand Up @@ -191,6 +192,7 @@
'<p class="text-muted" ng-bind="::detailsCtrl.talk.category"></p>' +
'<div marked="::detailsCtrl.talk.description"></div>' +
'<p><strong>Speaker{{::detailsCtrl.talk.speakers.indexOf(\',\') !== -1 ? \'s\' : \'\'}}</strong>&nbsp;: {{::detailsCtrl.talk.speakers}}</p>' +
'<p><strong>Niveau&nbsp;:</strong>&nbsp;{{::detailsCtrl.talk.level}}</p>' +
'</div>',
controller: function() {
this.talk = talk;
Expand Down
Loading

0 comments on commit 3911475

Please sign in to comment.