Skip to content

Commit

Permalink
feed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazarii committed Dec 30, 2023
1 parent 27aceb8 commit dedece0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions web/actions/templates/actions/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "base.html" %}
{% load static %}
{% block header %}
{% include 'includes/header.html' with selected='feed' %}
{% endblock header %}

{% block container %}

{% endblock container %}

{% block jquery %}
{% endblock %}
6 changes: 6 additions & 0 deletions web/actions/templates/actions/feed.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "actions/base.html" %}
{% load static main %}

{% block container %}
hello
{% endblock container %}
2 changes: 2 additions & 0 deletions web/actions/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
from rest_framework.routers import DefaultRouter

from . import views
from main.views import TemplateAPIView

app_name = 'actions'

router = DefaultRouter()

urlpatterns = [
path('feed', TemplateAPIView.as_view(template_name='actions/feed.html'), name='feed'),
path('actions/', views.ActionListView.as_view(), name='action_list'),
]

Expand Down
1 change: 0 additions & 1 deletion web/api/v1/profile/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers


User = get_user_model()


Expand Down
3 changes: 3 additions & 0 deletions web/templates/includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<li {% if selected == 'profile' %}class="active"{% endif %}>
<a href="{% url 'user_profile:profile' %}"></i> Profile</a>
</li>
<li {% if selected == 'feed' %}class="active"{% endif %}>
<a href="{% url 'actions:feed' %}"></i> Feed</a>
</li>
{% endif %}
</ul>
{% include 'includes/header_sign_status.html' %}
Expand Down

0 comments on commit dedece0

Please sign in to comment.