File tree Expand file tree Collapse file tree
core/apps/dashboard/templates/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,11 @@ <h4>Active Events</h4>
111111
112112 < a class ="btn btn-sm w-100 text-white " style ="background-color: #6021ff " href ="{% url 'programs' event_link=event.link %} "> < i class ="fa-solid fa-calendar-week "> </ i > Event Details</ a >
113113 < a class ="btn btn-sm text-white w-100 mt-2 " style ="background-color: #0a0023 " href ="{% url 'schedule' event_link=event.link %} "> < i class ="fa-solid fa-stopwatch "> </ i > Event Schedule</ a >
114+ {% if event.registration_link %}
115+ < a class ="btn btn-sm w-100 mt-2 " style ="background-color: #ecc731 " href ="{{event.registration_link} " target ="_blank "> < i class ="fa-solid fa-calendar-plus "> </ i > Register Now</ a >
116+ {% else %}
114117 < a class ="btn btn-sm w-100 mt-2 " style ="background-color: #ecc731 " href ="{% url 'registration' event_link=event.link %} "> < i class ="fa-solid fa-calendar-plus "> </ i > Register Now</ a >
118+ {% endif %}
115119 </ div >
116120 {% endfor %}
117121 </ div >
Original file line number Diff line number Diff line change 8989 < ul >
9090 {% if event.has_registration_open %}
9191 < li >
92+ {% if event.registration_link %}
93+ < a href ="{{ event.registration_link }} " class ="ttr-material-button " target ="_blank "> < span class ="ttr-label "> Registration</ span > </ a >
94+ {% else %}
9295 < a href ="{% url 'registration' event_link=event.link %} " class ="ttr-material-button "> < span class ="ttr-label "> {% if request.user.is_superuser %}Spot {% endif %}Registration</ span > </ a >
96+ {% endif %}
9397 </ li >
9498 {% endif %}
9599 < li >
You can’t perform that action at this time.
0 commit comments