Skip to content

Commit

Permalink
Merge pull request #141 from anurag6569201/main
Browse files Browse the repository at this point in the history
updated fixes #140
  • Loading branch information
anurag6569201 authored Jun 7, 2024
2 parents 5209a45 + 9bbd563 commit 44b44c3
Show file tree
Hide file tree
Showing 29 changed files with 28 additions and 26 deletions.
Binary file modified newsaggregator/core/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/core/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/core/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file modified newsaggregator/core/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/core/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/core/__pycache__/views.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion newsaggregator/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def news_list(request):
return render(request, "core/index.html", context)


# @custom_login_required
@custom_login_required
def index(request):
Headline.objects.all().delete()
session = requests.Session()
Expand Down
Binary file modified newsaggregator/db.sqlite3
Binary file not shown.
Binary file modified newsaggregator/newsaggregator/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/newsaggregator/__pycache__/settings.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/newsaggregator/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/newsaggregator/__pycache__/wsgi.cpython-312.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion newsaggregator/static/assets/js/preloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ window.addEventListener('load', function() {
setTimeout(() => {
preloader.style.display = 'none';
mainContent.style.display = 'flex';
}, 2000); // Adjust the delay time (in milliseconds) as needed
}, 100); // Adjust the delay time (in milliseconds) as needed
});
48 changes: 25 additions & 23 deletions newsaggregator/templates/components/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<nav class="navbar">
<a href="{% url 'core:index' %}">
<span class="logo-light">
<span class="logo-container"><img src="{% static './assets/images/news.png' %}" alt="logo" width="70" />Onion News</span>
<span class="logo-container"><img src="{% static './assets/images/news.png' %}" alt="logo"
width="70" />Onion News</span>
</span>
<span class="logo-dark">
<span class="logo-container"><img src="{% static './assets/images/news.png' %}" alt="logo" width="70" />Onion News</span>
<span class="logo-container"><img src="{% static './assets/images/news.png' %}" alt="logo"
width="70" />Onion News</span>
</span>
</a>
<div class="btn-group">
Expand All @@ -22,29 +24,29 @@
<div class="flex-wrapper">
<ul class="desktop-nav">
<!-- Start of list item for Home link -->
<li>
<!-- Link to the Home page. The URL is generated using Django's url template tag, which takes the name of a view function or a URL pattern name. -->
<a href="{% url 'core:index' %}" class="nav-link">Home</a>
</li>
<li {% if not request.user.is_authenticated %} style="pointer-events: none;" {% endif %}>
<!-- Link to the Home page. The URL is generated using Django's url template tag, which takes the name of a view function or a URL pattern name. -->
<a {% if request.user.is_authenticated %} href="{% url 'core:index' %}" {% endif %} class="nav-link">Home</a>
</li>

<!-- Start of list item for My Bookmarks link -->
<li class="nav-item">
<!-- Link to the My Bookmarks page. The URL is generated using Django's url template tag. -->
<a href="{% url 'core:view_bookmarks' %}" class="nav-link">My Bookmarks</a>
</li>
<!-- Start of list item for My Bookmarks link -->
<li {% if not request.user.is_authenticated %} style="pointer-events: none;" {% endif %}>
<!-- Link to the My Bookmarks page. The URL is generated using Django's url template tag. -->
<a {% if request.user.is_authenticated %} href="{% url 'core:view_bookmarks' %}" {% endif %} class="nav-link">My Bookmarks</a>
</li>

<!-- Start of list item for About Us link -->
<li>
<!-- Link to the About Us page. The URL is generated using Django's url template tag. -->
<a href="{% url 'core:about' %}" class="nav-link">About Us</a>
</li>
<!-- Start of list item for About Us link -->
<li>
<!-- Link to the About Us page. The URL is generated using Django's url template tag. -->
<a href="{% url 'core:about' %}" class="nav-link">About Us</a>
</li>

<!-- Start of list item for Contact link -->
<li>
<!-- Link to the Contact page. The URL is generated using Django's url template tag. -->
<a href="{% url 'core:contact' %}" class="nav-link">Contact</a>
</li>
<li>
<!-- Start of list item for Contact link -->
<li>
<!-- Link to the Contact page. The URL is generated using Django's url template tag. -->
<a href="{% url 'core:contact' %}" class="nav-link">Contact</a>
</li>
<li>
{% if not request.user.is_authenticated %}
<a href="{% url 'userauths:sign-up' %}" class="nav-link">Sign-in/Sign-up</a>
{% else %}
Expand Down Expand Up @@ -103,4 +105,4 @@
</ul>
</div>
</div>
</nav>
</nav>
2 changes: 1 addition & 1 deletion newsaggregator/templates/userauths/sign-in.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends '/base.html' %}
{% extends 'core/base.html' %}
{% load static %}

{% block authentication %}
Expand Down
Binary file modified newsaggregator/userauths/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/userauths/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/userauths/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/userauths/__pycache__/forms.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/userauths/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/userauths/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file modified newsaggregator/userauths/__pycache__/views.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 44b44c3

Please sign in to comment.