Fakultas Ilmu Komputer UI

Commit 567d5962 authored by Muhammad Ilham Peruzzi's avatar Muhammad Ilham Peruzzi
Browse files

Merge branch 'testinggoat/c8' into 'master'

Testinggoat/c8

See merge request !6
parents 472d80c3 ca5473d0
Pipeline #22575 passed with stages
in 13 minutes and 3 seconds
body .container{padding:10%}body .card-body{background-color:azure}
body {
.container {
padding: 10%;
}
.card-body{
background-color: azure;
}
}
body .container{padding:10%}body .card-body{background-color:azure}
body {
.container {
padding: 10%;
}
.card-body{
background-color: azure;
}
}
{% load sass_tags %}
<html>
<head>
<meta charset="utf-8">
......@@ -6,15 +7,17 @@
<title>To-Do lists</title>
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/static/base.css" rel="stylesheet">
<link href="{% sass_src 'scss/list.scss' %}" rel="stylesheet" type="text/css"/>
<link href="{% sass_src 'scss/home.scss' %}" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3 jumbotron">
<div class="col-md-6 col-md-offset-3 jumbotron card-body">
<div class="text-center">
<h2>Homepage</h2>
<h2 class="homepage">Homepage</h2>
<hr>
<div id="nama_lengkap">Muhammad Ilham Peruzzi</div>
<h5>Bio</h5>
......
......@@ -42,7 +42,6 @@ class HomePageTest(TestCase):
def test_home_page_returns_correct_html(self):
request = HttpRequest()
response = home_page(request)
self.assertTrue(response.content.startswith(b'<html>'))
self.assertIn(b'<title>To-Do lists</title>', response.content)
self.assertTrue(response.content.strip().endswith(b'</html>'))
......
......@@ -41,7 +41,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'lists'
'lists',
'sass_processor'
]
MIDDLEWARE = [
......@@ -135,3 +136,10 @@ USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
SASS_PROCESSOR_ROOT = os.path.join(PROJECT_DIR, 'static')
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'sass_processor.finders.CssFinder',
]
\ No newline at end of file
#id_new_item {
margin-top: 2ex;
}
\ No newline at end of file
#id_new_item {
margin-top: 2ex;
}
\ No newline at end of file
#id_new_item {
margin-top: 2ex;
}
\ 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