Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to ExComm materials to info.html #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ruddock/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def home():
@login_required()
def show_info():
"""Shows info page on door combos, printers, etc."""
# TODO - if desired, add excomm flag to show/hide ExComm Materials link
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This todo should be implemented before the excomm link is added to the website, so that the link is only accessible by excomm members. Could be accomplished as the comment suggests by showing/hiding the link based on whether the logged in user is part of excomm. Or, could create a separate url path to this page for excomm members that includes the link. Either way would be fine.

return flask.render_template('info.html',
full_member=is_full_member(flask.session['username']),
secrets=secrets)
Expand Down
6 changes: 5 additions & 1 deletion ruddock/templates/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
{% block body %}
<h2>Useful House Info</h2>
<br />
<h3> Ruddock House Calendar (All times are Pacific Time: Los Angeles) </h3>
<h3> Ruddock House Calendar (All times are Pacific Time: Los Angeles) </h3>
<iframe src="https://calendar.google.com/calendar/embed?src=qcgt4jno577tdmf8o3vs8k5354%40group.calendar.google.com&ctz=America%2FLos_Angeles" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
<br />

<h3>Past ExComm Meeting Minutes</h3>
<p> Minutes from past meetings can be found <a href="{{ secrets.LINKS['ExComm_Meeting_Minutes'] }}">here</a>.
</p>

<h3>ExComm Communal Materials</h3>
<p> Shared materials for ExComm can be found <a href="{{ secrets.LINKS['ExComm_Materials'] }}" target="_blank">here</a>.
</p>

<h3>Messenger Group Chats</h3>
<p>This <a href="{{ secrets.LINKS['Group_Chat_Spreadsheet'] }}">spreadsheet</a> contains all the public Ruddock-specific groupchats and will be updated as more are created.
</p>
Expand Down