Skip to content

Commit

Permalink
add media server to story index page
Browse files Browse the repository at this point in the history
  • Loading branch information
dianekaplan committed Oct 22, 2024
1 parent 10a440c commit aebcef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions mysite/familytree/templates/familytree/story_index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{% extends 'familytree/base.html' %}

{% block title %} - stories{% endblock title %}
{% block content %}
{% load static %}

<h1>Family Stories</h1>


{% if branch1_stories and branch1_name.first in accessible_branches %}
<div class="circled_section">
<h2>{{branch1_name.first}} stories</h2>
Expand Down Expand Up @@ -34,6 +33,4 @@ <h2>{{branch4_name.first}} stories</h2>
</div>
{% endif %}



{% endblock content %}
2 changes: 1 addition & 1 deletion mysite/familytree/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ def story_index(request):
browser = request.user_agent.browser.family
user_is_guest = profile.guest_user


try:
for branch in accessible_branches:
this_branch_stories = (
Expand Down Expand Up @@ -782,6 +781,7 @@ def story_index(request):
"branch3_name": branch3_name,
"branch4_name": branch4_name,
"browser": browser,
"media_server": media_server,
"user": profile.user,
"user_is_guest": user_is_guest,
}
Expand Down

0 comments on commit aebcef2

Please sign in to comment.