Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
0b2c33af
Commit
0b2c33af
authored
Sep 11, 2014
by
eric
Browse files
More friendly urls for the stylesheets
And fix a syntax error in the stock print.css
parent
f19493e2
Changes
5
Hide whitespace changes
Inline
Side-by-side
relearn/static/css/print.css
View file @
0b2c33af
...
@@ -35,3 +35,6 @@ html, body {
...
@@ -35,3 +35,6 @@ html, body {
font-size
:
200px
!important
;
font-size
:
200px
!important
;
line-height
:
1em
!important
;
line-height
:
1em
!important
;
}
}
}
relearn/templates/base.html
View file @
0b2c33af
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<link
rel=
"stylesheet"
href=
"{{ STATIC_URL }}css/fonts.css"
type=
"text/css"
media=
"all"
>
<link
rel=
"stylesheet"
href=
"{{ STATIC_URL }}css/fonts.css"
type=
"text/css"
media=
"all"
>
{% block extra_styles %}
{% block extra_styles %}
<link
rel=
"stylesheet/less"
href=
"
/css/
"
type=
"text/css"
media=
"screen"
>
<link
rel=
"stylesheet/less"
href=
"
{% url 'css' %}
"
type=
"text/css"
media=
"screen"
>
<link
rel=
"stylesheet/less"
href=
"
/
css-print
/
"
type=
"text/css"
media=
"all"
>
<link
rel=
"stylesheet/less"
href=
"
{% url '
css-print
' %}
"
type=
"text/css"
media=
"all"
>
{% endblock %}
{% endblock %}
<script
src=
"{{ STATIC_URL }}js/less-1.4.1.min.js"
type=
"text/javascript"
></script>
<script
src=
"{{ STATIC_URL }}js/less-1.4.1.min.js"
type=
"text/javascript"
></script>
...
...
relearn/templates/home.html
View file @
0b2c33af
{% extends "base.html" %}
{% extends "base.html" %}
{% load wikify relearn_tags %}
{% load wikify relearn_tags %}
{% block extra_styles %}
<link
rel=
"stylesheet/less"
href=
"/css/"
type=
"text/css"
media=
"screen"
>
<link
rel=
"stylesheet/less"
href=
"/css-print/"
type=
"text/css"
media=
"print"
>
{% endblock %}
{% block bodyclasses %}pad-00md{% endblock %}
{% block bodyclasses %}pad-00md{% endblock %}
{% block extra_nav %}
{% block extra_nav %}
...
...
relearn/templates/pad-read.html
View file @
0b2c33af
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
{% block extra_styles %}
{% block extra_styles %}
{% ifequal mode "p" %}
{% ifequal mode "p" %}
<link
rel=
"stylesheet/less"
href=
"
/css-print/
"
type=
"text/css"
media=
"all"
>
<link
rel=
"stylesheet/less"
href=
"
{% url 'css' %}
"
type=
"text/css"
media=
"all"
>
<link
rel=
"stylesheet/less"
href=
"{{ STATIC_URL }}less/print.less"
type=
"text/css"
media=
"all"
>
<link
rel=
"stylesheet/less"
href=
"{{ STATIC_URL }}less/print.less"
type=
"text/css"
media=
"all"
>
{% else %}
{% else %}
<link
rel=
"stylesheet/less"
href=
"
/css/
"
type=
"text/css"
media=
"screen"
>
<link
rel=
"stylesheet/less"
href=
"
{% url 'css' %}
"
type=
"text/css"
media=
"screen"
>
<link
rel=
"stylesheet/less"
href=
"
/
css-print
/
"
type=
"text/css"
media=
"print"
>
<link
rel=
"stylesheet/less"
href=
"
{% url '
css-print
' %}
"
type=
"text/css"
media=
"print"
>
{% endifequal %}
{% endifequal %}
{% endblock %}
{% endblock %}
...
...
relearn/urls.py
View file @
0b2c33af
...
@@ -13,9 +13,9 @@ urlpatterns = patterns(
...
@@ -13,9 +13,9 @@ urlpatterns = patterns(
''
,
''
,
url
(
r
'^admin/'
,
include
(
admin
.
site
.
urls
)),
url
(
r
'^admin/'
,
include
(
admin
.
site
.
urls
)),
url
(
r
'^all/$'
,
TemplateView
.
as_view
(
template_name
=
'all.html'
),
name
=
'all'
),
url
(
r
'^all/$'
,
TemplateView
.
as_view
(
template_name
=
'all.html'
),
name
=
'all'
),
url
(
r
'^css
/
$'
,
'relearn.views.css'
,
name
=
'css'
),
url
(
r
'^
style.
css$'
,
'relearn.views.css'
,
name
=
'css'
),
url
(
r
'^publish/$'
,
'relearn.views.publish'
,
name
=
'publish'
),
url
(
r
'^publish/$'
,
'relearn.views.publish'
,
name
=
'publish'
),
url
(
r
'^
css-
print
/
$'
,
'relearn.views.cssprint'
,
name
=
'css-print'
),
url
(
r
'^print
.css
$'
,
'relearn.views.cssprint'
,
name
=
'css-print'
),
url
(
r
'^$'
,
'relearn.views.home'
,
name
=
'home'
),
url
(
r
'^$'
,
'relearn.views.home'
,
name
=
'home'
),
url
(
r
'^accounts/login$'
,
'django.contrib.auth.views.login'
,
url
(
r
'^accounts/login$'
,
'django.contrib.auth.views.login'
,
{
'template_name'
:
'login.html'
},
name
=
'login'
),
{
'template_name'
:
'login.html'
},
name
=
'login'
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment