Improve template
This commit is contained in:
parent
c66f8d9456
commit
35f60676de
1 changed files with 28 additions and 15 deletions
|
@ -4,27 +4,44 @@
|
|||
<meta charset="utf-8"/>
|
||||
</head>
|
||||
<style>
|
||||
body { background-color: black; color: #999;}
|
||||
p { }
|
||||
div { margin: 1%; }
|
||||
/* unvisited link */
|
||||
a:link {
|
||||
color: blueviolet;
|
||||
}
|
||||
/* visited link */
|
||||
a:visited {
|
||||
color: #040;
|
||||
}
|
||||
/* mouse over link */
|
||||
a:hover {
|
||||
color: hotpink;
|
||||
}
|
||||
/* selected link */
|
||||
a:active {
|
||||
color: blue;
|
||||
}
|
||||
</style>
|
||||
<BODY>
|
||||
<!-- account bloc -->
|
||||
<DIV>
|
||||
<IMG ALT="{{ data['account']['display_name'] }} avatar image" SRC="{{ data['account']['avatar_static'] }}" STYLE="width:46px;height:46px;margin:1%;">
|
||||
</BR>
|
||||
<A HREF="{{ data['account']['url'] }}" TARGET="_blank"></A>
|
||||
<IMG ALT="{{ data['account']['display_name'] }} avatar image" SRC="{{ data['account']['avatar_static'] }}" STYLE="width:64px;height:64px;margin:1%;float: left;">
|
||||
<B>{{ data['account']['display_name'] }} ({{ data['account']['username'] }})</B>
|
||||
</A>
|
||||
</DIV>
|
||||
<!-- creation_date -->
|
||||
<DIV STYLE='font-size: 0.75em;'>
|
||||
{{ data['created_at'] }}
|
||||
</DIV>
|
||||
<!-- content block -->
|
||||
<DIV STYLE='font-size: 2.5em;'>
|
||||
<DIV STYLE='font-size: 1.5em;'>
|
||||
<!-- spoiler -->
|
||||
<DIV CLASS='item-spoiler'>
|
||||
{{ data['spoiler'] }}
|
||||
</DIV>
|
||||
</BR>
|
||||
<!-- item-content -->
|
||||
<DIV CLASS='item-content' STYLE="margin:5%;">
|
||||
{{ data['content'] }}
|
||||
|
@ -51,21 +68,21 @@
|
|||
<DIV STYLE="margin:5%;">
|
||||
<!-- reblog-account -->
|
||||
<DIV>
|
||||
<IMG ALT='{{ data['reblog']['account']['display_name'] }} avatar image' SRC='{{ data['reblog']['account']['avatar_static'] }}' STYLE='width:46px;height:46px;margin:1%'>
|
||||
</BR>
|
||||
<A HREF="{{ data['reblog']['account']['url'] }}" TARGET="_blank"></A>
|
||||
<IMG ALT="{{ data['reblog']['account']['display_name'] }} avatar image" SRC="{{ data['reblog']['account']['avatar_static'] }}" STYLE='width:64px;height:64px;margin:1%;float: left;'>
|
||||
<B>{{ data['reblog']['account']['display_name'] }} ({{ data['reblog']['account']['username'] }})</B>
|
||||
</A>
|
||||
</DIV>
|
||||
<!-- reblog_creation_date -->
|
||||
<DIV STYLE='font-size: 0.75em;'>
|
||||
{{ data['reblog']['created_at'] }}
|
||||
</DIV>
|
||||
<!-- reblog_content_bloc -->
|
||||
<DIV STYLE='font-size: 2.5em;'>
|
||||
<DIV STYLE='font-size: 1.5em;'>
|
||||
<!-- reblog_spoiler -->
|
||||
<DIV CLASS='reblog-spoiler'>
|
||||
{{ data['reblog']['spoiler'] }}
|
||||
</DIV>
|
||||
</BR>
|
||||
<!-- reblog_content -->
|
||||
<DIV CLASS='reblog-content'>
|
||||
{{ data['reblog']['content'] }}
|
||||
|
@ -96,12 +113,8 @@
|
|||
<A TARGET="_blank" HREF="{{ data['url'] }}">Post original page</A>
|
||||
</DIV>
|
||||
{# <!-- card -->{{ data['card'] }} #}
|
||||
</BR>
|
||||
</BR>
|
||||
</BR>
|
||||
</BR>
|
||||
<!-- Raw JSON data -->
|
||||
<DIV>
|
||||
<DIV STYLE="margin-top:15%;font-size:0.75em;">
|
||||
Raw JSON data:
|
||||
<PRE>{{ json_raw }}</PRE>
|
||||
</DIV>
|
||||
|
|
Loading…
Reference in a new issue