Skip to content

Commit 2f39c2b

Browse files
committed
Refactoring
1 parent fe1a973 commit 2f39c2b

File tree

8 files changed

+1408
-4
lines changed

8 files changed

+1408
-4
lines changed

apps/charts/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ def index(request):
1010
'segment': 'charts',
1111
'products': products
1212
}
13-
return render(request, 'pages/charts.html', context)
13+
return render(request, 'charts/index.html', context)

apps/pages/views.py

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,32 @@
55
from .models import *
66

77
def index(request):
8-
98
context = {
10-
'segment' : 'index',
11-
#'products' : Product.objects.all()
9+
'segment': 'dashboard'
1210
}
1311
return render(request, "pages/index.html", context)
12+
13+
# Components
14+
def color(request):
15+
context = {
16+
'segment': 'color'
17+
}
18+
return render(request, "pages/color.html", context)
19+
20+
def typography(request):
21+
context = {
22+
'segment': 'typography'
23+
}
24+
return render(request, "pages/typography.html", context)
25+
26+
def icon_feather(request):
27+
context = {
28+
'segment': 'feather_icon'
29+
}
30+
return render(request, "pages/icon-feather.html", context)
31+
32+
def sample_page(request):
33+
context = {
34+
'segment': 'sample_page',
35+
}
36+
return render(request, 'pages/sample-page.html', context)
File renamed without changes.

templates/pages/color.html

Lines changed: 336 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)