Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
2131b031
Commit
2131b031
authored
Oct 26, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Readd example as an autotest use it
parent
d730af80
Pipeline
#38718
passed with stage
in 62 minutes and 6 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
293 additions
and
0 deletions
+293
-0
examples/CMakeLists.txt
examples/CMakeLists.txt
+1
-0
examples/messageviewergrantleetheme/CMakeLists.txt
examples/messageviewergrantleetheme/CMakeLists.txt
+1
-0
examples/messageviewergrantleetheme/themes/example/header.desktop
.../messageviewergrantleetheme/themes/example/header.desktop
+69
-0
examples/messageviewergrantleetheme/themes/example/header.html
...les/messageviewergrantleetheme/themes/example/header.html
+48
-0
examples/messageviewergrantleetheme/themes/example/header_row.html
...messageviewergrantleetheme/themes/example/header_row.html
+1
-0
examples/messageviewergrantleetheme/themes/example_fancy/header.desktop
...geviewergrantleetheme/themes/example_fancy/header.desktop
+70
-0
examples/messageviewergrantleetheme/themes/example_fancy/header.html
...ssageviewergrantleetheme/themes/example_fancy/header.html
+103
-0
No files found.
examples/CMakeLists.txt
0 → 100644
View file @
2131b031
add_subdirectory
(
messageviewergrantleetheme
)
examples/messageviewergrantleetheme/CMakeLists.txt
0 → 100644
View file @
2131b031
install
(
DIRECTORY themes DESTINATION
${
KDE_INSTALL_DATADIR
}
/messageviewer
)
examples/messageviewergrantleetheme/themes/example/header.desktop
0 → 100644
View file @
2131b031
[Desktop Entry]
Name=Example
Name[ar]=مثال
Name[ca]=Exemple
Name[ca@valencia]=Exemple
Name[cs]=Příklad
Name[da]=Eksempel
Name[de]=Beispiel
Name[en_GB]=Example
Name[es]=Ejemplo
Name[et]=Näidis
Name[fi]=Esimerkki
Name[fr]=Exemple
Name[gl]=Exemplo
Name[ia]=Exemplo
Name[it]=Esempio
Name[ko]=예제
Name[nb]=Eksempel
Name[nl]=Voorbeeld
Name[pl]=Przykład
Name[pt]=Exemplo
Name[pt_BR]=Exemplo
Name[ru]=Пример
Name[sk]=Príklad
Name[sl]=Primer
Name[sr]=Пример
Name[sr@ijekavian]=Пример
Name[sr@ijekavianlatin]=Primer
Name[sr@latin]=Primer
Name[sv]=Exempel
Name[tr]=Örnek
Name[uk]=Приклад
Name[x-test]=xxExamplexx
Name[zh_CN]=例句
Name[zh_TW]=範例
Description=Example theme for header.
Description[ar]=سمة مثال للتّرويسة.
Description[ca]=Tema d'exemple per a la capçalera.
Description[ca@valencia]=Tema d'exemple per a la capçalera.
Description[da]=Eksempeltema på header.
Description[de]=Beispieldesign für den Vorspann.
Description[en_GB]=Example theme for header.
Description[es]=Tema de ejemplo para encabezado.
Description[et]=Päise näidisteema
Description[fi]=Esimerkkiotsaketeema.
Description[fr]=Thème exemple pour en-tête
Description[gl]=Tema de exemplo para a cabeceira.
Description[ia]=Thema de exemplo pro capite
Description[it]=Tema di esempio per l'intestazione.
Description[ko]=예제 헤더 테마입니다.
Description[nb]=Eksempel tema for hodelinje.
Description[nl]=Voorbeeld van thema voor kop.
Description[pl]=Przykładowy wystrój nagłówka.
Description[pt]=Tema de exemplo de cabeçalhos.
Description[pt_BR]=Exemplo de tema para o cabeçalho.
Description[ru]=Пример оформления заголовка
Description[sk]=Ukážková téma pre hlavičku.
Description[sl]=Primer teme za glavo.
Description[sr]=Пример теме заглавља.
Description[sr@ijekavian]=Пример теме заглавља.
Description[sr@ijekavianlatin]=Primer teme zaglavlja.
Description[sr@latin]=Primer teme zaglavlja.
Description[sv]=Exempeltema för huvud.
Description[tr]=Başlık için örnek tema.
Description[uk]=Приклад теми для заголовка.
Description[x-test]=xxExample theme for header.xx
Description[zh_CN]=头部主题示例
Description[zh_TW]=適用於標頭的範例主題。
FileName=header.html
examples/messageviewergrantleetheme/themes/example/header.html
0 → 100644
View file @
2131b031
<div>
{% if header.subject %}
{% with header.subjecti18n as title %}
{% with header.subject|safe as value %}
{% include "header_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if header.from.isSet %}
{% with header.fromi18n as title %}
{% with header.from.fullAddress|safe as value %}
{% include "header_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if header.to.isSet %}
{% with header.toi18n as title %}
{% with header.to.fullAddress|safe as value %}
{% include "header_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if header.cc.isSet %}
{% with header.cci18n as title %}
{% with header.cc.fullAddress|safe as value %}
{% include "header_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if header.bcc.isSet %}
{% with header.bcci18n as title %}
{% with header.bcc.fullAddress|safe as value %}
{% include "header_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% with header.datei18n as title %}
{% with header.date.short as value %}
{% include "header_row.html" %}
{% endwith %}
{% endwith %}
{% if header.spamHTML %}
{{ spamHTML|safe }}
{% endif %}
</div>
examples/messageviewergrantleetheme/themes/example/header_row.html
0 → 100644
View file @
2131b031
<div
valign=
"top"
width=
"30%"
><b><font
color=
"grey"
>
{{ title }}
</font></b>
{{ value }}
</div>
examples/messageviewergrantleetheme/themes/example_fancy/header.desktop
0 → 100644
View file @
2131b031
[Desktop Entry]
Name=Example fancy
Name[ar]=مثال عن الخياليّة
Name[ca]=Exemple sofisticat
Name[ca@valencia]=Exemple sofisticat
Name[da]=Eksempel på flot
Name[de]=Dekoratives Beispiel
Name[en_GB]=Example fancy
Name[es]=Ejemplo adornado
Name[et]=Uhke näidis
Name[fi]=Tyylikäs esimerkki
Name[fr]=Exemple fantaisie
Name[gl]=Exemplo elegante
Name[ia]=Exemplo phantasia
Name[it]=Esempio elegante
Name[ko]=보기 좋은 테마 예제
Name[nb]=Eksempel flott
Name[nl]=Voorbeeld van elegant
Name[pl]=Przykładowy elegancki
Name[pt]=Exemplo bonito
Name[pt_BR]=Exemplo bonito
Name[ru]=Пример изящного оформления
Name[sk]=Príklad pekný
Name[sl]=Primer razkošnega
Name[sr]=Пример помодне
Name[sr@ijekavian]=Пример помодне
Name[sr@ijekavianlatin]=Primer pomodne
Name[sr@latin]=Primer pomodne
Name[sv]=Snyggt exempel
Name[tr]=Örnek süs
Name[uk]=Приклад вишуканого
Name[x-test]=xxExample fancyxx
Name[zh_CN]=花哨示例
Name[zh_TW]=Example fancy
Description=Create fancy theme with grantlee.
Description[ar]=أنشئ سمة خياليّة بِ«غرانتلي».
Description[ca]=Crea un tema sofisticat amb grantlee.
Description[ca@valencia]=Crea un tema sofisticat amb grantlee.
Description[da]=Opret flot tema med grantlee.
Description[de]=Dekoratives mit Grantlee erstelltes Design
Description[en_GB]=Create fancy theme with grantlee.
Description[es]=Crear tema adornado con grantlee.
Description[et]=Vahva teema loomine grantleega
Description[fi]=Luo tyylikäs teema grantleeta käyttäen.
Description[fr]=Créer des thèmes fantaisies avec Grantlee
Description[gl]=Crear un tema elegante con Grantlee.
Description[ia]=Crea un thema de phantasia con grantlee
Description[it]=Crea un tema elegante con grantlee.
Description[ko]=Grantlee로 보기 좋은 테마를 만듭니다.
Description[nb]=Opprett et flott tema med grantlee.
Description[nl]=Elegant thema maken met grantlee.
Description[nn]=Skap ditt eige «grantlee»-tema.
Description[pl]=Utwórz elegancki wystrój z grantlee.
Description[pt]=Criar um tema bonito com o Grantlee.
Description[pt_BR]=Cria um tema bonito com o Grantlee.
Description[ru]=Создайте изящное оформление с помощью grantlee.
Description[sk]=Vytvoriť peknú tému s grantlee.
Description[sl]=Ustvari razkošno temo z grantlee.
Description[sr]=Направите помодну тему Грантлијем.
Description[sr@ijekavian]=Направите помодну тему Грантлијем.
Description[sr@ijekavianlatin]=Napravite pomodnu temu Grantleejem.
Description[sr@latin]=Napravite pomodnu temu Grantleejem.
Description[sv]=Skapa snyggt tema med Grantlee.
Description[tr]=Grantlee ile süslü tema oluşturma.
Description[uk]=Створити складну тему за допомогою grantlee.
Description[x-test]=xxCreate fancy theme with grantlee.xx
Description[zh_CN]=用 grantlee 创建花哨主题
Description[zh_TW]=透過 grantlee 建立華麗的主題。
FileName=header.html
DisplayExtraVariables=Sender,List-Id
examples/messageviewergrantleetheme/themes/example_fancy/header.html
0 → 100644
View file @
2131b031
<div
class=
"fancy header"
dir=
"ltr"
>
<div
dir=
"ltr"
>
{{ header.subject|safe }}
</div>
<table
class=
"outer"
>
<tbody>
<tr>
<td
width=
"100%"
>
<table>
<tr>
<th
align=
"left"
style=
"font-size: 10px;"
>
{{ header.fromi18n }}
</th>
<td
style=
"font-size: 10px;"
>
{{ header.from.str}}
{% if header.resentFrom %}
{{ header.resentFromi18n }} {{ header.resentFrom }}
{% endif %}
{% if vCardName %}
<a
href=
"{{ header.vcardname|safe }}"
>
{{ header.vcardi18n }}
</a>
{% endif %}
{% if header.organization %}
("{{ header.organization}}")
{% endif %}
</td>
</tr>
<tr>
<th
align=
"left"
style=
"font-size: 10px;"
>
{{ header.toi18n }}
</th>
<td
style=
"font-size: 10px;"
>
{{ header.to.expandableTo|safe }}
</td>
</tr>
{% if header.cc.isSet %}
<tr>
<th
align=
"left"
style=
"font-size: 10px;"
>
{{ header.cci18n }}
</th>
<td
style=
"font-size: 10px;"
>
{{ header.cc.expandableCc|safe }}
</td>
</tr>
{% endif %}
{% if header.bcc.isSet %}
<tr>
<th
align=
"left"
style=
"font-size: 10px;"
>
{{ header.bcci18n }}
</th>
<td
style=
"font-size: 10px;"
>
{{ header.bcc.expandableBCC|safe }}
</td>
</tr>
{% endif %}
{% if header.sender.isSet %}
<tr>
<th
align=
"left"
style=
"font-size: 10px;"
>
{{ header.senderi18n }}
</th>
<td
style=
"font-size: 10px;"
>
{{ header.sender.str }}
</td>
</tr>
{% endif %}
{% if header.ListId %}
<tr>
<th
align=
"left"
style=
"font-size: 10px;"
>
List-Id:
</th>
<td
style=
"font-size: 10px;"
>
{{ header.ListId }}
</td>
</tr>
{% endif %}
<tr>
<th
align=
"left"
style=
"font-size: 10px;"
>
{{ header.datei18n }}
</th>
<td
dir=
"{{ dateDir }}"
style=
"font-size: 10px;"
>
{{ header.date.short }}
</td>
</tr>
<tr>
<td
colspan=
"2"
><div
id=
"attachmentInjectionPoint"
></div></td>
</tr>
</table>
</td>
{% if header.photourl %}
<td
align=
"center"
>
<div
style=
"font-size:0.8em ! important;border:1px solid black ! important;background-color:#3384b3 ! important;"
>
<img
src=
"{{ header.photourl }}"
width=
"{{ header.photowidth }}"
height=
"{{ header.photoheight }}"
/>
</div>
</td>
{% endif %}
</tr>
{% if header.spamHTML %}
<table
>
<tbody>
<tr>
<td>
<div
class=
"spamheader"
>
<span><b>
{{ header.spamstatusi18n }}
</b></span>
<span>
{{ header.spamHTML|safe }}
</span>
</div>
</td>
</tr>
</tbody>
</table>
{% endif %}
</tbody>
</table>
</div>
Write
Preview
Markdown
is supported
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