Fakultas Ilmu Komputer UI

Commit 8f4c51d4 authored by Muhammad Feril Bagus Perkasa's avatar Muhammad Feril Bagus Perkasa
Browse files

[REFACTOR] add base_news to remove duplicate code

parent b59814c0
Pipeline #59650 passed with stages
in 16 minutes and 26 seconds
{% extends "base.html" %}
{% load static %}
{% block title %}Digipus Home{% endblock %}
{% block header %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Digipus News</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{% static 'app/css/katalog_materi.css' %}">
<link href="../../static/app/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../../static/app/css/heroic-features.css" rel="stylesheet">
<link rel="icon" type="image/png" href="{% static 'images/icons/logo.ico' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'fonts/font-awesome-4.7.0/css/font-awesome.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/animate/animate.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/css-hamburgers/hamburgers.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/animsition/css/animsition.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/select2/select2.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/daterangepicker/daterangepicker.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/styles.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/util.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/navbar_katalog_materi.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/all_news_page.css' %}">
{% endblock header %}
{% block content %}
</head>
<body>
{% extends "base_news.html" %}
{% block content %}
<div class="container">
{% include 'app/includes/navbar_katalog_materi.html' %}
<br>
......@@ -50,8 +19,4 @@
</div>
{% endfor %}
</div><br><br><br>
</body>
</html>
{% endblock %}
\ No newline at end of file
{% extends "base.html" %}
{% load static %}
{% block title %}Digipus News{% endblock %}
{% block header %}
<link rel="stylesheet" type="text/css" href="{% static 'app/css/katalog_materi.css' %}">
<link href="../../static/app/css/heroic-features.css" rel="stylesheet">
<link rel="icon" type="image/png" href="{% static 'images/icons/logo.ico' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'css/styles.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/util.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/navbar_katalog_materi.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/all_news_page.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'fonts/font-awesome-4.7.0/css/font-awesome.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/animate/animate.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/daterangepicker/daterangepicker.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/css-hamburgers/hamburgers.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/animsition/css/animsition.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/select2/select2.min.css' %}">
{% endblock header %}
{% block content %}
{% endblock %}
\ No newline at end of file
{% extends "base.html" %}
{% load static %}
{% block title %}Digipus Home{% endblock %}
{% block header %}
{% extends "base_news.html" %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Digipus News</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{% static 'app/css/katalog_materi.css' %}">
<link href="../../static/app/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../../static/app/css/heroic-features.css" rel="stylesheet">
<link rel="icon" type="image/png" href="{% static 'images/icons/logo.ico' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'fonts/font-awesome-4.7.0/css/font-awesome.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/animate/animate.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/css-hamburgers/hamburgers.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/animsition/css/animsition.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/select2/select2.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/daterangepicker/daterangepicker.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/styles.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/util.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/main.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/navbar_katalog_materi.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/all_news_page.css' %}">
{% endblock header %}
{% block content %}
</head>
<body>
{% block content %}
<div class="container">
{% include 'app/includes/navbar_katalog_materi.html' %}
{% include 'app/includes/navbar_katalog_materi.html' %}
<div class="text-center">
<br><br>
<h1>{{news.title}}</h1><br>
<p>{{news.timestamp}}</p><br>
<img class="img-responsive center-block" id="card_image" src= "{{news.cover.url}}"/> <br><br>
<img class="img-responsive center-block" id="card_image" src= "{{news.cover.url}}" alt="image-{{news.id}}"/> <br><br>
<article>
{{news.content | safe}}
</article><br><br><br><br>
</div>
</div>
</body>
</html>
{% endblock %}
\ No newline at end of file
Supports Markdown
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