Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
19434b3e
Verified
Commit
19434b3e
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Add base templates for plain prints
parent
5aea5fe2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!991
Add base template for plain prints and optimize PDF generation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/static/print-simple.css
+21
-0
21 additions, 0 deletions
aleksis/core/static/print-simple.css
aleksis/core/templates/core/base_simple_print.html
+52
-0
52 additions, 0 deletions
aleksis/core/templates/core/base_simple_print.html
with
73 additions
and
0 deletions
aleksis/core/static/print-simple.css
0 → 100644
+
21
−
0
View file @
19434b3e
@page
{
padding
:
0
;
margin
:
0
;
}
table
.small-print
,
td
.small-print
,
th
.small-print
{
font-size
:
10pt
;
}
tr
{
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0.3
);
}
td
,
th
{
padding
:
1px
;
}
td
.rotate
,
th
.rotate
{
text-align
:
center
;
transform
:
rotate
(
-90deg
);
}
This diff is collapsed.
Click to expand it.
aleksis/core/templates/core/base_simple_print.html
0 → 100644
+
52
−
0
View file @
19434b3e
{% load static i18n any_js sass_tags %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html
lang=
"{{ LANGUAGE_CODE }}"
>
<head>
{% include "core/partials/meta.html" %}
<title>
{% block no_browser_title %}
{% block browser_title %}{% endblock %} —
{% endblock %}
{{ SITE_PREFERENCES.general__title }}
</title>
{% include_css "material-design-icons" %}
{% include_css "Roboto100" %}
{% include_css "Roboto300" %}
{% include_css "Roboto400" %}
{% include_css "Roboto500" %}
{% include_css "Roboto700" %}
{% include_css "Roboto900" %}
{% include_css "paper-css" %}
<link
rel=
"stylesheet"
href=
"{% sass_src 'public/style.scss' %}"
/>
<link
rel=
"stylesheet"
href=
"{% static "
print-simple.css
"
%}"
/>
{% block size %}
<style>
@page
{
size
:
{{
width
}
}
mm
{
{
height
}
}
mm
;
}
@media
print
{
html
,
body
{
width
:
{{
width
}}
mm
;
}
}
.sheet
{
width
:
{{
width
}
}
mm
;
height
:
{
{
height|
add
:
-1
}
}
.
83
mm
;
}
</style>
{% endblock %}
{% block extra_head %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
This diff is collapsed.
Click to expand it.
Jonathan Weth
@hansegucker
mentioned in commit
9de0e724
·
2 years ago
mentioned in commit
9de0e724
mentioned in commit 9de0e72400ad56e2a33daaf3ea9ac2558680bde1
Toggle commit list
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