Skip to content

Commit

Permalink
Changes made
Browse files Browse the repository at this point in the history
  • Loading branch information
Varsha010101 committed Jun 4, 2024
1 parent 43fdd74 commit 03e1294
Show file tree
Hide file tree
Showing 24 changed files with 11 additions and 6 deletions.
Binary file not shown.
Binary file not shown.
Binary file added newsaggregator/core/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified newsaggregator/db.sqlite3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 8 additions & 2 deletions newsaggregator/templates/components/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
<div class="container">
{% include 'components/swiperjs.html' %}

<!-- Display a welcome message for authenticated users -->
<div class="alert alert-success" role="alert">
<p>Welcome back, {{ request.user.username }}! Enjoy your bookmarks.</p>
</div>
<div class="row mt-2 p-2">

{% for record in object_list %}

<div class="col-12 col-md-6 col-lg-4 mb-4 newscard">
<div class="card h-100">
<img style="max-height: 11em;" class="card-img-top" src="{{ record.image }}" alt="News Image" loading="lazy">
Expand Down Expand Up @@ -153,7 +159,7 @@
</style>


<!-- News Modal -->
<!-- <!-- News Modal
<div class="modal fade" id="newsModal" tabindex="-1" aria-labelledby="newsModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
Expand All @@ -168,7 +174,7 @@ <h5 class="modal-title" id="newsModalLabel">News Article</h5>
</div>
</div>
</div>
</div>
</div> -->

<!-- Report Modal -->
<div class="modal fade" id="reportModal" tabindex="-1" aria-labelledby="reportModalLabel" aria-hidden="true">
Expand Down
7 changes: 3 additions & 4 deletions newsaggregator/templates/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
<!-- Define the index block -->
{% block index %}
<!-- Include the news component -->

{% include 'components/news.html' %}


<!-- Check if the user is not authenticated -->
{% if not request.user.is_authenticated %}
<!-- Display a message encouraging the user to register -->
Expand All @@ -27,9 +29,6 @@
</div>
</div>
{% else %}
<!-- Display a welcome message for authenticated users -->
<div class="alert alert-success" role="alert">
<p>Welcome back, {{ request.user.username }}! Enjoy your bookmarks.</p>
</div>

{% endif %}
{% endblock index %}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 03e1294

Please sign in to comment.