Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hshassets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
django
hshassets
Commits
f0dd37af
Commit
f0dd37af
authored
7 years ago
by
Tim Fechner
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
ssh://lab.it.hs-hannover.de:2222/django/hshassets
parents
b11c3a64
babc3de6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+15
-11
15 additions, 11 deletions
README.md
hshassets/templatetags/bulma.py
+3
-1
3 additions, 1 deletion
hshassets/templatetags/bulma.py
with
18 additions
and
12 deletions
README.md
+
15
−
11
View file @
f0dd37af
# hshassets []()
# hshassets []()
[]()
This django-app provides everything you ever wanted! (probably not, but i hope you feel happy anyways). It brings fonts,
This django-app provides everything you ever wanted! (probably not, but i hope you feel happy anyways). It brings fonts,
styles, javascript and layouts as templates.
styles, javascript and layouts as templates.
...
@@ -20,7 +20,7 @@ The current version of this package ships the following own stuff and awesome th
...
@@ -20,7 +20,7 @@ The current version of this package ships the following own stuff and awesome th
#### CSS
#### CSS
-
[
animate.css
](
https://github.com/daneden/animate.css
)
(
3.5.2
)
- cross-browser library of CSS animations
-
[
animate.css
](
https://github.com/daneden/animate.css
)
(
3.5.2
)
- cross-browser library of CSS animations
-
[
bulma
](
https://github.com/jgthms/bulma
)
(
0.5.
0
)
- modern CSS framework based on Flexbox
-
[
bulma
](
https://github.com/jgthms/bulma
)
(
0.5.
1
)
- modern CSS framework based on Flexbox
-
[
font-awesome
](
https://github.com/FortAwesome/Font-Awesome
)
(
4.7.0
)
- iconic font and CSS toolkit
-
[
font-awesome
](
https://github.com/FortAwesome/Font-Awesome
)
(
4.7.0
)
- iconic font and CSS toolkit
#### JavaScript
#### JavaScript
...
@@ -61,7 +61,8 @@ This example structure ...
...
@@ -61,7 +61,8 @@ This example structure ...
│ │ │ ├── cat.png │
│ │ │ ├── cat.png │
│ │ │ └── mouse.png │
│ │ │ └── mouse.png │
│ │ ├── js │
│ │ ├── js │
│ │ │ └── somescript.js │
│ │ │ ├── foo.js │
│ │ │ └── bar.js │
│ │ └── sass │
│ │ └── sass │
│ │ ├── _init.scss │
│ │ ├── _init.scss │
│ │ └── stuff.scss │
│ │ └── stuff.scss │
...
@@ -89,15 +90,18 @@ This example structure ...
...
@@ -89,15 +90,18 @@ This example structure ...
│ │ └── [appname] ├─ The produced result
│ │ └── [appname] ├─ The produced result
│ │ ├── fonts │
│ │ ├── fonts │
│ │ │ └── funny_font.woff │ But be careful, never edit files here directly!
│ │ │ └── funny_font.woff │ But be careful, never edit files here directly!
│ │ ├── img │ `hshassets` manages this directory entirely. This
│ │ │ | `hshassets` manages this directory entirely. This
│ │ │ ├── dog.png │ means that everything here will be overwritten or
│ │ ├── img │ means that everything here will be overwritten or
│ │ │ ├── cat.png │ deleted if it shouldn't be here. Use the `assets`
│ │ │ ├── dog.png │ deleted if it shouldn't be here. Use the `assets`
│ │ │ └── mouse.png │ folder for your custom stuff.
│ │ │ ├── cat.png │ folder for your custom stuff.
│ │ │ └── mouse.png │
│ │ │ │
│ │ │ │
│ │ ├── script.js │
│ │ ├── js ├─ Javascript won't be concatinated but minified
│ │ ├── script.min.js │
│ │ │ ├── foo.js │
│ │ ├── styles.css │
│ │ │ └── bar.js |
│ │ └── styles.min.css │
│ │ │ |
│ │ ├── styles.css ├─ Sass / Scss files will be compiled, concatinated
│ │ └── styles.min.css │ and minified.
│ │ ┘
│ │ ┘
│ ├── urls.py
│ ├── urls.py
│ ├── wsgi.py
│ ├── wsgi.py
...
...
This diff is collapsed.
Click to expand it.
hshassets/templatetags/bulma.py
+
3
−
1
View file @
f0dd37af
...
@@ -20,7 +20,9 @@ def bulma_form_fields(form):
...
@@ -20,7 +20,9 @@ def bulma_form_fields(form):
if
field
.
errors
:
if
field
.
errors
:
widget_classes
.
append
(
"
is-danger
"
)
widget_classes
.
append
(
"
is-danger
"
)
# done
# done
field
.
field
.
widget
.
attrs
[
"
class
"
]
=
"
"
.
join
(
widget_classes
)
if
field
.
field
.
widget
.
attrs
.
get
(
'
class
'
):
widget_classes
.
append
(
field
.
field
.
widget
.
attrs
[
'
class
'
])
field
.
field
.
widget
.
attrs
[
'
class
'
]
=
"
"
.
join
(
widget_classes
)
if
getattr
(
form
,
'
layout
'
,
None
):
if
getattr
(
form
,
'
layout
'
,
None
):
output
=
render_layout
(
form
.
layout
,
form
)
output
=
render_layout
(
form
.
layout
,
form
)
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment