Skip to content
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
2 changes: 1 addition & 1 deletion web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@
<a href="{% url 'surveys' %}"
class="flex items-center py-2 px-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md ">
<i class="fas fa-square-poll-vertical mr-2 text-teal-500"></i>
<span>Learning Requests</span>
<span>Surveys</span>
</a>
<a href="{% url 'waiting_room_list' %}"
class="flex items-center py-2 px-3 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md">
Expand Down
8 changes: 7 additions & 1 deletion web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,13 @@ def index(request):
latest_post = BlogPost.objects.filter(status="published").order_by("-published_at").first()

# Get latest success story
latest_success_story = SuccessStory.objects.filter(status="published").order_by("-published_at").first()
latest_success_story = (
SuccessStory.objects.filter(status="published")
.exclude(title__iexact="test")
.order_by("-published_at")
.first()
)


# Get last two waiting room requests
latest_waiting_room_requests = WaitingRoom.objects.filter(status="open").order_by("-created_at")[:2]
Expand Down