Compare commits
No commits in common. "98115742dd5fcd62659674f39dd0e12c195ecce6" and "52e57a3994c9361aa801fc9a6ccaa994d66bd8ed" have entirely different histories.
98115742dd
...
52e57a3994
2 changed files with 4 additions and 4 deletions
|
|
@ -2,10 +2,8 @@
|
||||||
.topnav {
|
.topnav {
|
||||||
background-color: #222e;
|
background-color: #222e;
|
||||||
position: relative;
|
position: relative;
|
||||||
//height: 68px;
|
height: 68px;
|
||||||
//padding: var(--spacing-2);
|
padding: var(--spacing-2);
|
||||||
height: 0;
|
|
||||||
padding: 0;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 110;
|
z-index: 110;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ def index(request):
|
||||||
return render(request, 'index.html', context)
|
return render(request, 'index.html', context)
|
||||||
|
|
||||||
def page(request, slug=''):
|
def page(request, slug=''):
|
||||||
|
print('page!!', slug)
|
||||||
context = {}
|
context = {}
|
||||||
if slug == "":
|
if slug == "":
|
||||||
return index(request)
|
return index(request)
|
||||||
|
|
@ -43,6 +44,7 @@ def texts(request):
|
||||||
return render(request, 'texts.html', context)
|
return render(request, 'texts.html', context)
|
||||||
|
|
||||||
def text(request, slug):
|
def text(request, slug):
|
||||||
|
print('find text', slug)
|
||||||
context = {}
|
context = {}
|
||||||
if request.user.is_staff:
|
if request.user.is_staff:
|
||||||
context['text'] = get_object_or_404(models.Text, slug=slug)
|
context['text'] = get_object_or_404(models.Text, slug=slug)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue