Browse Source

css improvements

drop_old_mail
Stephan Richter 3 years ago
parent
commit
0ee1a7214f
  1. 2
      pom.xml
  2. 14
      static/templates/archive.st
  3. 10
      static/templates/css.st
  4. 4
      static/templates/js.st

2
pom.xml

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
<groupId>org.example</groupId>
<artifactId>Widerhall</artifactId>
<version>0.2.50</version>
<version>0.2.51</version>
<build>
<plugins>
<plugin>

14
static/templates/archive.st

@ -1,13 +1,19 @@ @@ -1,13 +1,19 @@
<!DOCTYPE html>
<html>
«head()»
<body>
<body id="archive">
«navigation()»
«userinfo()»
«messages()»
<h1>Widerhall List Archive</h1>
<h1>«data.list»&nbsp; &nbsp;List Archive</h1>
<fieldset>
<legend>Subscription</legend>
<a href="subscribe?list=«data.list»">subscribe</a>
<a href="unsubscribe?list=«data.list»">un-subscribe</a>
</fieldset>
«if(data.month)»
<table id="archive">
<table>
<tr>
<th>Date</th>
<th>From</th>
@ -18,7 +24,7 @@ @@ -18,7 +24,7 @@
loadArchive('«data.list»','«data.month»');
</script>
«else»
<table id="archive">
<table>
<tr>
<th>Month</th>
<th>Number of messages</th>

10
static/templates/css.st

@ -132,6 +132,14 @@ td, th{ @@ -132,6 +132,14 @@ td, th{
text-align: center;
}
#archive fieldset{
text-align: center;
}
#archive fieldset a{
display: initial;
}
#archive td, #archive th{
text-align: left;
}
@ -141,7 +149,7 @@ pre { @@ -141,7 +149,7 @@ pre {
margin-left: 10px;
}
#archive a{
#archive table a{
background: none;
border: none;
text-decoration: underline;

4
static/templates/js.st

@ -86,7 +86,7 @@ function showListArchive(data){ @@ -86,7 +86,7 @@ function showListArchive(data){
$('<td/>').html('<a href="'+url+'">'+post.date+'</a>').appendTo(row);
$('<td/>').html('<a href="'+url+'">'+post.from_name+'</a>').appendTo(row);
$('<td/>').html('<a href="'+url+'">'+post.subject+'</a>').appendTo(row);
row.appendTo($('#archive'));
row.appendTo($('#archive table'));
}
}
@ -98,7 +98,7 @@ function showListArchiveSummary(data){ @@ -98,7 +98,7 @@ function showListArchiveSummary(data){
let row = $('<tr/>');
$('<td/>').html('<a href="'+url+'">'+month+'</a>').appendTo(row);
$('<td/>').html('<a href="'+url+'">'+summary[month]+'</a>').appendTo(row);
row.appendTo($('#archive'));
row.appendTo($('#archive table'));
}
}

Loading…
Cancel
Save