comparison mod_http_muc_log/http_muc_log.html @ 3715:f03a023cd523

mod_http_muc_log: Compose page title from room data More flexible than composing the title from name and date in the controller. Also opens the door to using other room data fields.
author Kim Alvefur <zash@zash.se>
date Sun, 13 Oct 2019 16:16:14 +0200
parents 04ff0de40ba9
children 3db27b8f1cb0
comparison
equal deleted inserted replaced
3714:04ff0de40ba9 3715:f03a023cd523
2 <html lang="en"> 2 <html lang="en">
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1"> 5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 {date&<meta name="dcterms.date" content="{date}">} 6 {date&<meta name="dcterms.date" content="{date}">}
7 <title>{title}</title> 7 <title>{title?{room.name?{jid_node}}{date& - {date}}}</title>
8 <style> 8 <style>
9 :link,:visited{color:#3465a4;text-decoration:none;} 9 :link,:visited{color:#3465a4;text-decoration:none;}
10 :link:hover,:visited:hover{color:#6197df;} 10 :link:hover,:visited:hover{color:#6197df;}
11 body{background-color:#eeeeec;margin:1ex 0;padding-bottom:3em;font-family:Arial,Helvetica,sans-serif;} 11 body{background-color:#eeeeec;margin:1ex 0;padding-bottom:3em;font-family:Arial,Helvetica,sans-serif;}
12 ul,ol{padding:0;} 12 ul,ol{padding:0;}
44 form{text-align:right} 44 form{text-align:right}
45 </style> 45 </style>
46 </head> 46 </head>
47 <body> 47 <body>
48 <header> 48 <header>
49 <h1 {lang&lang="{lang}"} title="xmpp:{jid?}">{title}</h1> 49 <h1 {lang&lang="{lang}"} title="xmpp:{jid?}">{title?{room.name?{jid_node}}{date& - {date}}}</h1>
50 <nav> 50 <nav>
51 <ul> 51 <ul>
52 {jid_node& 52 {jid_node&
53 <li class="button"><a href="xmpp:{jid?}?join">Join using a client</a></li> 53 <li class="button"><a href="xmpp:{jid?}?join">Join using a client</a></li>
54 } 54 }