Browse Source

update template decoration

main
ghost 9 months ago
parent
commit
6a70691f64
  1. 7
      src/controller/room.php
  2. 3
      src/view/post.gemini
  3. 4
      src/view/posts.gemini
  4. 4
      src/view/room.gemini
  5. 6
      src/view/rooms.gemini

7
src/controller/room.php

@ -294,6 +294,7 @@ class Room
'{author}', '{author}',
'{quote}', '{quote}',
'{message}', '{message}',
PHP_EOL . PHP_EOL
], ],
[ [
$record['txid'], $record['txid'],
@ -301,11 +302,11 @@ class Room
$matches[1] $matches[1]
), ),
'@' . $matches[2], '@' . $matches[2],
$quote $quote,
,
$this->_plain( $this->_plain(
$record['value'] $record['value']
) ),
PHP_EOL
], ],
file_get_contents( file_get_contents(
__DIR__ . '/../view/post.gemini' __DIR__ . '/../view/post.gemini'

3
src/view/post.gemini

@ -1,6 +1,9 @@
### {author} ### {author}
{quote} {quote}
{message} {message}
``` ```
{time} #{txid} {time} #{txid}
``` ```

4
src/view/posts.gemini

@ -2,6 +2,10 @@
# {subject} # {subject}
## Navigation
=> {home}
## Posts ## Posts
{posts} {posts}

4
src/view/room.gemini

@ -1,3 +1,3 @@
## {name} ({total}) ### {name} ({total})
=> {link} => {link}

6
src/view/rooms.gemini

@ -1,5 +1,9 @@
```{logo}``` ```{logo}```
# Rooms ## About
{about}
## Rooms
{rooms} {rooms}
Loading…
Cancel
Save