mirror of
https://github.com/Rushilwiz/NewViewsNews.git
synced 2025-04-16 17:50:16 -04:00
added howto page for zaeem to start
This commit is contained in:
parent
cc72ead5d9
commit
cf3b49df14
|
@ -35,6 +35,7 @@
|
|||
<div class="navbar-nav mr-auto">
|
||||
<a class="nav-item nav-link" href="{% url 'home' %}">Home</a>
|
||||
<a class="nav-item nav-link" href="{% url 'about' %}">About</a>
|
||||
<a class="nav-item nav-link" href="{% url 'howto' %}">How To</a>
|
||||
</div>
|
||||
<!-- Navbar Right Side -->
|
||||
<div class="navbar-nav">
|
||||
|
|
13
news/templates/news/howto.html
Normal file
13
news/templates/news/howto.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% extends 'news/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<h1>How to use NewViewsNews</h1>
|
||||
<h5 class="text-center">In this day and age, close-mindedness and echochambers prevent others from being exposed to people who offer varying perspectives. This has caused a lot of conflict within our society. Our solution: NewViewsNews.</h5>
|
||||
<img width="100%" src="{% static 'news/css/res/logo.svg'%}" alt="logo">
|
||||
<br><br><br>
|
||||
<p>NewViewsNews is a crowdsourcing news site that allows you to view the news and opinions of people who have opposing political views. To get started, you simply make an account and specify your position on the political compass. After that, you can write your own posts and view other posts! Our algorithms will display posts from individuals on the opposite side of the compass on your home page.</p>
|
||||
<p>NewViewsNews is paving the way for an open minded and more understanding community. <a href="{% url 'login' %}">Join us today!</a></p>
|
||||
|
||||
|
||||
|
||||
{% endblock content %}
|
|
@ -13,6 +13,7 @@ urlpatterns = [
|
|||
path('', views.home, name='home'),
|
||||
path('about/', views.about, name='about'),
|
||||
path('policy/', views.policy, name='privacy-policy'),
|
||||
path('howto/', views.howto, name='howto'),
|
||||
|
||||
path('user/<str:username>', UserArticleListView.as_view(), name='user-articles'),
|
||||
path('article/<int:pk>/', ArticleDetailView.as_view(), name='article-detail'),
|
||||
|
|
|
@ -24,6 +24,14 @@ def about (request):
|
|||
|
||||
return render (request, 'news/about.html')
|
||||
|
||||
@login_required
|
||||
def howto (request):
|
||||
createProfileIfNotExist(request)
|
||||
if checkValues(request) is False:
|
||||
return redirect('values')
|
||||
|
||||
return render (request, 'news/howto.html')
|
||||
|
||||
def policy (request):
|
||||
return render (request, 'news/policy.html')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user