css improvements

This commit is contained in:
2022-04-25 12:18:10 +02:00
parent 20a81a7f60
commit 0ee1a7214f
4 changed files with 22 additions and 8 deletions

View File

@@ -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 @@
loadArchive('«data.list»','«data.month»');
</script>
«else»
<table id="archive">
<table>
<tr>
<th>Month</th>
<th>Number of messages</th>

View File

@@ -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 {
margin-left: 10px;
}
#archive a{
#archive table a{
background: none;
border: none;
text-decoration: underline;

View File

@@ -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){
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'));
}
}