Skip to content

Commit 700da77

Browse files
committed
Fix indentation
Attempt to fix the indentation level and nesting levels of the html tags.
1 parent 1f99ed3 commit 700da77

9 files changed

Lines changed: 261 additions & 264 deletions

File tree

api/templates/api.html

Lines changed: 81 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,89 @@
11
{% extends 'base.html'%}
22
{% block content %}
33
<center>
4-
<section class="hero is-medium is-primary is-bold">
5-
<div class="hero-body">
6-
<div class="container">
7-
<h1 class="title">
8-
Are you a creator ? <br>
9-
Try tutorialdb REST API 👇
10-
</h1>
4+
<section class="hero is-medium is-primary is-bold">
5+
<div class="hero-body">
6+
<div class="container">
7+
<h1 class="title">
8+
Are you a creator ? <br>
9+
Try tutorialdb REST API 👇
10+
</h1>
11+
</div>
1112
</div>
12-
</div>
13-
</section>
13+
</section>
1414
</center>
15-
1615
<section class="hero is-medium" style="background-color: orange">
17-
<div class="hero-body">
18-
<div>
19-
<details>
20-
<summary class="title">See Docs</summary>
21-
<div class="table-container">
22-
<table class="table is-hoverable">
23-
<th>Request</th>
24-
<th>Endpoint</th>
25-
<th>Description</th>
26-
<tr>
27-
<td><code>GET</code></td>
28-
<td><code>/api/tutorials</code></td>
29-
<td><p>Returns all the tutorials.</p></td>
30-
</tr>
31-
<tr>
32-
<td><code>POST</code></td>
33-
<td><code>/api/tutorials</code></td>
34-
<td>
35-
<p>Submit a tutorial.</p>
36-
<code>
37-
{
38-
"link":"https://abc.xyz",
39-
"category":"video"
40-
}
41-
</code>
42-
</td>
43-
</tr>
44-
<tr>
45-
<td><code>GET</code></td>
46-
<td><code>/api/tutorials/{tags}/</code></td>
47-
<td>
48-
<p>Returns tutorials filtered by tags.<br>
49-
Multiple Tags should be separated with commas,<br>
50-
for e.g <code>/api/tutorials/python,api</code>
51-
</p>
52-
</td>
53-
</tr>
54-
<tr>
55-
<td><code>GET</code></td>
56-
<td><code>/api/tutorials/{tags}/{category}/</code></td>
57-
<td>
58-
<p>Returns tutorials filtered by tags and category.<br>
59-
Only one category can be specified at a time for e.g <br>
60-
<code>/api/tutorials/python,api/video</code> or <br>
61-
<code>/api/tutorials/react/article</code>
62-
</p>
63-
Available Categories :
64-
<ul>
65-
<li>article</li>
66-
<li>video</li>
67-
<li>docs</li>
68-
<li>course</li>
69-
<li>book</li>
70-
<li>cheatsheet</li>
71-
</ul>
72-
</td>
73-
</tr>
74-
<tr>
75-
<td><code>GET</code></td>
76-
<td><code>/api/tags/</code></td>
77-
<td><p>Returns all the tags.</p></td>
78-
</tr>
79-
<tr>
80-
<td><code>GET</code></td>
81-
<td><code>/api/latest/</code></td>
82-
<td><p>Return latest 10 tutorials from tutorialdb.</p></td>
83-
</tr>
84-
</table>
85-
</div>
86-
</details>
87-
</div>
88-
</div>
16+
<div class="hero-body">
17+
<div>
18+
<details>
19+
<summary class="title">See Docs</summary>
20+
<div class="table-container">
21+
<table class="table is-hoverable">
22+
<th>Request</th>
23+
<th>Endpoint</th>
24+
<th>Description</th>
25+
<tr>
26+
<td><code>GET</code></td>
27+
<td><code>/api/tutorials</code></td>
28+
<td><p>Returns all the tutorials.</p></td>
29+
</tr>
30+
<tr>
31+
<td><code>POST</code></td>
32+
<td><code>/api/tutorials</code></td>
33+
<td>
34+
<p>Submit a tutorial.</p>
35+
<code>
36+
{
37+
"link":"https://abc.xyz",
38+
"category":"video"
39+
}
40+
</code>
41+
</td>
42+
</tr>
43+
<tr>
44+
<td><code>GET</code></td>
45+
<td><code>/api/tutorials/{tags}/</code></td>
46+
<td>
47+
<p>Returns tutorials filtered by tags.<br>
48+
Multiple Tags should be separated with commas,<br>
49+
for e.g <code>/api/tutorials/python,api</code>
50+
</p>
51+
</td>
52+
</tr>
53+
<tr>
54+
<td><code>GET</code></td>
55+
<td><code>/api/tutorials/{tags}/{category}/</code></td>
56+
<td>
57+
<p>Returns tutorials filtered by tags and category.<br>
58+
Only one category can be specified at a time for e.g <br>
59+
<code>/api/tutorials/python,api/video</code> or <br>
60+
<code>/api/tutorials/react/article</code>
61+
</p>
62+
Available Categories :
63+
<ul>
64+
<li>article</li>
65+
<li>video</li>
66+
<li>docs</li>
67+
<li>course</li>
68+
<li>book</li>
69+
<li>cheatsheet</li>
70+
</ul>
71+
</td>
72+
</tr>
73+
<tr>
74+
<td><code>GET</code></td>
75+
<td><code>/api/tags/</code></td>
76+
<td><p>Returns all the tags.</p></td>
77+
</tr>
78+
<tr>
79+
<td><code>GET</code></td>
80+
<td><code>/api/latest/</code></td>
81+
<td><p>Return latest 10 tutorials from tutorialdb.</p></td>
82+
</tr>
83+
</table>
84+
</div>
85+
</details>
86+
</div>
87+
</div>
8988
</section>
9089
{% endblock %}

app/templates/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block content %}
44
<section class="hero is-medium is-primary is-bold">
55
<div class="hero-body">
6-
<h1 class="title">About</h1>
6+
<h1 class="title">About</h1>
77
<div class="container">
88
<center>
99
<img src="{% static 'app/computer2.svg' %}" height="170" width="170"><br><br>

app/templates/contribute.html

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,35 @@ <h1 class="title" align="center">Or just,<br>
3030
<h2 class="title is-3"><i>{{ error }}</i></h2>
3131
{% endif %}
3232
<div class="container">
33-
<form action="{% url 'app:thankyou' %}" method="post">
34-
{% csrf_token %}
35-
<div class="field">
36-
<label class="label">Link</label>
37-
<div class="control">
38-
<input class="input is-rounded" type="url" name="tlink" placeholder="paste tutorial link here" autofocus>
39-
</div>
40-
</div>
41-
<div class="field">
42-
<label class="label">Type</label>
43-
<div class="control">
44-
<div class="select is-rounded">
45-
<select name="tcategory">
46-
<option value ="video">Video</option>
47-
<option value ="article">Article</option>
48-
<option value ="course">Course</option>
49-
<option value ="docs">Docs</option>
50-
<option value ="book">Books</option>
51-
<option value ="cheatsheet">Cheatsheet</option>
52-
</select>
53-
</div>
54-
</div>
33+
<form action="{% url 'app:thankyou' %}" method="post">
34+
{% csrf_token %}
35+
<div class="field">
36+
<label class="label">Link</label>
37+
<div class="control">
38+
<input class="input is-rounded" type="url" name="tlink" placeholder="paste tutorial link here" autofocus>
5539
</div>
56-
<div class="field is-grouped">
57-
<div class="control">
58-
<button class="button is-link is-rounded" type="submit">Submit</button>
40+
</div>
41+
<div class="field">
42+
<label class="label">Type</label>
43+
<div class="control">
44+
<div class="select is-rounded">
45+
<select name="tcategory">
46+
<option value ="video">Video</option>
47+
<option value ="article">Article</option>
48+
<option value ="course">Course</option>
49+
<option value ="docs">Docs</option>
50+
<option value ="book">Books</option>
51+
<option value ="cheatsheet">Cheatsheet</option>
52+
</select>
5953
</div>
6054
</div>
61-
</form>
55+
</div>
56+
<div class="field is-grouped">
57+
<div class="control">
58+
<button class="button is-link is-rounded" type="submit">Submit</button>
59+
</div>
60+
</div>
61+
</form>
6262
</div>
6363
</div>
6464
</section>

app/templates/home.html

Lines changed: 48 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
{% load staticfiles %}
33
{% block content %}
44
<section class="hero is-medium is-dark is-bold">
5-
<div class="hero-body" style="background-color: #04243B">
6-
<center>
7-
<div class="container">
8-
<img src="{% static 'app/tutorialdb.png' %}">
9-
</div>
10-
<h1 class="subtitle">A search engine for programming/dev tutorials.</h1>
11-
<img src="{% static 'app/computer.svg' %}" height="100" width="100">
12-
</center>
13-
</div>
14-
</section>
5+
<div class="hero-body" style="background-color: #04243B">
156
<center>
7+
<div class="container">
8+
<img src="{% static 'app/tutorialdb.png' %}">
9+
</div>
10+
<h1 class="subtitle">A search engine for programming/dev tutorials.</h1>
11+
<img src="{% static 'app/computer.svg' %}" height="100" width="100">
12+
</center>
13+
</div>
14+
</section>
15+
<center>
1616
<section class="hero is-medium is-success is-bold">
1717
<div class="hero-body" style="background-color: orange">
1818
<div class="container">
@@ -22,47 +22,46 @@ <h3 class="title is-3"> 🚀 Start learning asap.</h3>
2222
</div>
2323
</div>
2424
</section>
25+
</center>
26+
<section class="section">
27+
<div class="container">
28+
<h1 class="title" align="center">Search Tutorials</h1>
29+
<center>
30+
<img src="{% static 'app/search.png' %}" height="100" width="100">
2531
</center>
26-
<section class="section">
27-
<div class="container">
28-
<h1 class="title" align="center">Search Tutorials</h1>
29-
<center>
30-
<img src="{% static 'app/search.png' %}" height="100" width="100">
31-
</center>
32-
<br>
33-
<form action="{% url 'app:search-results' %}" method="get">
34-
<div class="field">
35-
<div class="control has-icons-left">
36-
<input class="input is-rounded" name="q" type="text" placeholder="to do app in ..">
37-
<span class="icon is-small is-left">
38-
<i class="fa fa-search" aria-hidden="true"></i>
39-
</span>
40-
</div>
41-
</div>
42-
<div class="field">
43-
<label class="label">Filter</label>
44-
<div class="field is-grouped">
45-
<div class="control">
46-
<div class="select is-rounded">
47-
<select name = "category">
48-
<option disabled selected value>select category</option>
49-
<option value ="video">Videos</option>
50-
<option value ="article">Articles</option>
51-
<option value ="course">Courses</option>
52-
<option value ="docs">Docs</option>
53-
<option value ="book">Books</option>
54-
<option value ="cheatsheet">Cheatsheet</option>
55-
</select>
56-
</div>
57-
</div>
58-
</div>
59-
</div>
32+
<br>
33+
<form action="{% url 'app:search-results' %}" method="get">
34+
<div class="field">
35+
<div class="control has-icons-left">
36+
<input class="input is-rounded" name="q" type="text" placeholder="to do app in ..">
37+
<span class="icon is-small is-left">
38+
<i class="fa fa-search" aria-hidden="true"></i>
39+
</span>
40+
</div>
41+
</div>
42+
<div class="field">
43+
<label class="label">Filter</label>
44+
<div class="field is-grouped">
6045
<div class="control">
61-
<button class="button is-primary is-rounded" onclick='focusMe()' type="submit">Submit</button>
46+
<div class="select is-rounded">
47+
<select name = "category">
48+
<option disabled selected value>select category</option>
49+
<option value ="video">Videos</option>
50+
<option value ="article">Articles</option>
51+
<option value ="course">Courses</option>
52+
<option value ="docs">Docs</option>
53+
<option value ="book">Books</option>
54+
<option value ="cheatsheet">Cheatsheet</option>
55+
</select>
56+
</div>
6257
</div>
63-
</form>
58+
</div>
6459
</div>
65-
</section>
66-
{% block results %}
67-
{% endblock results %}
60+
<div class="control">
61+
<button class="button is-primary is-rounded" onclick='focusMe()' type="submit">Submit</button>
62+
</div>
63+
</form>
64+
</div>
65+
</section>
66+
{% block results %}{% endblock results %}
6867
{% endblock content %}

0 commit comments

Comments
 (0)