Browse Source

Merge branch 'main' into lang_de

lang_de
Stephan Richter 2 years ago
parent
commit
6752479908
  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 @@
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>Widerhall</artifactId> <artifactId>Widerhall</artifactId>
<version>0.2.50</version> <version>0.2.51</version>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

14
static/templates/archive.st

@ -1,13 +1,19 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
«head()» «head()»
<body> <body id="archive">
«navigation()» «navigation()»
«userinfo()» «userinfo()»
«messages()» «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)» «if(data.month)»
<table id="archive"> <table>
<tr> <tr>
<th>Datum</th> <th>Datum</th>
<th>Absender</th> <th>Absender</th>
@ -18,7 +24,7 @@
loadArchive('«data.list»','«data.month»'); loadArchive('«data.list»','«data.month»');
</script> </script>
«else» «else»
<table id="archive"> <table>
<tr> <tr>
<th>Monat</th> <th>Monat</th>
<th>Zahl der Nachrichten</th> <th>Zahl der Nachrichten</th>

10
static/templates/css.st

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

4
static/templates/js.st

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

Loading…
Cancel
Save