Commit 31851678 authored by Stephanie Tullao's avatar Stephanie Tullao

Modified forum's html files

parent 85dc8d0b
......@@ -4,30 +4,36 @@
{% block title %}{{ post.post_title }}{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{% static 'forum/css/detail_styles.css' %}">
<link rel="stylesheet" href="{% static 'forum/css/forum_details_styles.css' %}">
{% endblock %}
{% block content %}
<body>
{% if post.id == 1 %}
<img src="{% static 'forum/img/GitBranch.png' %}" alt="view branch">
<img src="{% static 'forum/img/GitBranch.png' %}" alt="view branch" class="center">
{% endif %}
{% if post.id == 2 %}
<img src="{% static 'forum/img/GitCheckout.png' %}" alt="switch branch">
<img src="{% static 'forum/img/GitCheckout.png' %}" alt="switch branch" class="center">
{% endif %}
{% if post.id == 3 %}
<img src="{% static 'forum/img/GitBranchCreate.png' %}" alt="create branch">
<img src="{% static 'forum/img/GitBranchCreate.png' %}" alt="create branch" class="center">
{% endif %}
<h1>{{ post.post_title }}</h1>
<h2>
<h3>
by {{ post.author.first_name }} {{ post.author.last_name }}, {{ post.pub_date|date:'d/m/Y' }}
</h2>
{{ post.post_body }}
</h3>
<h4>
{{ post.post_body }}
</h4>
<h3>Replies:</h3>
<div class="replies">
<h2>Replies:</h2>
{% for reply in reply_list %}
<h2>
by {{ reply.author.first_name }} {{ reply.author.last_name }}, {{ reply.pub_date|date:'d/m/Y' }}
</h2>
{{ reply.reply_body }}
<h5>
{{ reply.author.first_name }} {{ reply.author.last_name }}, {{ reply.pub_date|date:'d/m/Y' }} :
</h5>
<p>{{ reply.reply_body }}</p>
{% endfor %}
</div>
</body>
{% endblock %}
\ No newline at end of file
......@@ -3,18 +3,12 @@
{% block title %}Forum{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{% static 'forum/css/list_styles.css' %}">
{% endblock %}
{% block styles %} <link rel="stylesheet" href="{% static 'forum/css/forum_list_styles.css' %}"> {% endblock %}
{% block content %}
<header>
<h1>
Welcome to Widget’s Forum!
</h1>
</header>
<p>
<h3>Forum posts:</h3>
<body>
<header> Welcome to Widget’s Forum! </header>
<h1>Forum posts:</h1>
{% for post in post_list %}
<li>
<a href="{% url 'forum:post-details' pk=post.pk %}">
......@@ -22,5 +16,5 @@
</a>
</li>
{% endfor %}
</p>
</body>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment