diff --git a/rowers/templates/courses_challenges.html b/rowers/templates/courses_challenges.html index 84a2aa8e..2cf5b890 100644 --- a/rowers/templates/courses_challenges.html +++ b/rowers/templates/courses_challenges.html @@ -23,6 +23,24 @@
  • Courses you might like

  • +
  • +

    + Whether you routinely row between two landmarks on your river and want to compare + times from one day to the other, or like a little competition between + rowers in your neighborhood, Rowsandall courses are for you! They are useful for GPS-based timing + of your time on the course, and enable easy, informal, timed event on any body of water you like. +

    +

    + On Rowsandall, rowers share courses and organize challenges. We're showing you a few on this page, + but there are many more to explore. You can also add your own. +

    +

    + These courses are designed to be compatible with + CrewNerd Custom Courses. You + can synchronize the list of liked courses to the CrewNerd app on your phone, so you can get + on-the-water indications of your time on the course. +

    +
  • All Courses @@ -35,6 +53,13 @@

    {{ course.course.name }}

    +

    + {% if course.course in rower.followed_courses.all %} + + {% else %} + + {% endif %} +

    {{ course.course.country }}

    {{ course.course.distance }}m

    @@ -100,6 +125,68 @@ + + + + {% endblock %} {% block sidebar %} diff --git a/rowers/templates/list_courses.html b/rowers/templates/list_courses.html index 8fd12901..f218c15f 100644 --- a/rowers/templates/list_courses.html +++ b/rowers/templates/list_courses.html @@ -92,9 +92,9 @@ {% if not user.is_anonymous %} {% if course in rower.followed_courses.all %} - + {% else %} - + {% endif %} {% endif %} @@ -178,10 +178,10 @@ console.log(response); $ajaxLink.removeClass('follow').addClass('unfollow'); $ajaxLink.attr('href', '/rowers/courses/' + id + '/unfollow') - $ajaxLink.find('i').removeClass('far').removeClass('fa-star').addClass('fas').addClass('fa-star'); // Change star icon to filled - $ajaxLink.find('.icon i').attr('class', 'fas fa-star'); + $ajaxLink.find('i').removeClass('far').removeClass('fa-heart').addClass('fas').addClass('fa-heart'); // Change star icon to filled + $ajaxLink.find('.icon i').attr('class', 'fas fa-heart'); $ajaxLink.find('.icon i').html(''); - $ajaxLink.html(''); + $ajaxLink.html(''); }, error: function(xhr, status, error) { @@ -204,10 +204,10 @@ console.log(response); $ajaxLink.removeClass('unfollow').addClass('follow'); $ajaxLink.attr('href', '/rowers/courses/' + id + '/follow') - $ajaxLink.find('i').removeClass('fas').removeClass('fa-star').addClass('far').addClass('fa-star'); // Change star icon to outline - $ajaxLink.find('.icon i').attr('class', 'far fa-star'); + $ajaxLink.find('i').removeClass('fas').removeClass('fa-heart').addClass('far').addClass('fa-heart'); // Change star icon to outline + $ajaxLink.find('.icon i').attr('class', 'far fa-heart'); $ajaxLink.find('.icon i').html(''); - $ajaxLink.html(''); + $ajaxLink.html(''); }, error: function(xhr, status, error) { console.error(error); diff --git a/static/img/crewnerd.png b/static/img/crewnerd.png new file mode 100644 index 00000000..0210cb05 Binary files /dev/null and b/static/img/crewnerd.png differ