Commit 31851678 authored by Stephanie Tullao's avatar Stephanie Tullao

Modified forum's html files

parent 85dc8d0b
...@@ -4,30 +4,36 @@ ...@@ -4,30 +4,36 @@
{% block title %}{{ post.post_title }}{% endblock %} {% block title %}{{ post.post_title }}{% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{% static 'forum/css/detail_styles.css' %}"> <link rel="stylesheet" href="{% static 'forum/css/forum_details_styles.css' %}">
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<body>
{% if post.id == 1 %} {% 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 %} {% endif %}
{% if post.id == 2 %} {% 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 %} {% endif %}
{% if post.id == 3 %} {% 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 %} {% endif %}
<h1>{{ post.post_title }}</h1> <h1>{{ post.post_title }}</h1>
<h2> <h3>
by {{ post.author.first_name }} {{ post.author.last_name }}, {{ post.pub_date|date:'d/m/Y' }} by {{ post.author.first_name }} {{ post.author.last_name }}, {{ post.pub_date|date:'d/m/Y' }}
</h2> </h3>
{{ post.post_body }} <h4>
{{ post.post_body }}
</h4>
<h3>Replies:</h3> <div class="replies">
<h2>Replies:</h2>
{% for reply in reply_list %} {% for reply in reply_list %}
<h2> <h5>
by {{ reply.author.first_name }} {{ reply.author.last_name }}, {{ reply.pub_date|date:'d/m/Y' }} {{ reply.author.first_name }} {{ reply.author.last_name }}, {{ reply.pub_date|date:'d/m/Y' }} :
</h2> </h5>
{{ reply.reply_body }} <p>{{ reply.reply_body }}</p>
{% endfor %} {% endfor %}
</div>
</body>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -3,18 +3,12 @@ ...@@ -3,18 +3,12 @@
{% block title %}Forum{% endblock %} {% block title %}Forum{% endblock %}
{% block styles %} {% block styles %} <link rel="stylesheet" href="{% static 'forum/css/forum_list_styles.css' %}"> {% endblock %}
<link rel="stylesheet" href="{% static 'forum/css/list_styles.css' %}">
{% endblock %}
{% block content %} {% block content %}
<header> <body>
<h1> <header> Welcome to Widget’s Forum! </header>
Welcome to Widget’s Forum! <h1>Forum posts:</h1>
</h1>
</header>
<p>
<h3>Forum posts:</h3>
{% for post in post_list %} {% for post in post_list %}
<li> <li>
<a href="{% url 'forum:post-details' pk=post.pk %}"> <a href="{% url 'forum:post-details' pk=post.pk %}">
...@@ -22,5 +16,5 @@ ...@@ -22,5 +16,5 @@
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
</p> </body>
{% endblock %} {% 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