diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-07-16 01:59:36 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-07-16 01:59:36 -0400 |
commit | 433dbf9f3f10d1fabf7598e87475aad0f0b0da91 (patch) | |
tree | 4f213275d003fe1c7804c4795229fa5618dddac9 /src/views/blog | |
parent | b022b433339575ff9c4bc58637f6b2c551f5fec6 (diff) | |
download | guff-433dbf9f3f10d1fabf7598e87475aad0f0b0da91.tar.bz2 guff-433dbf9f3f10d1fabf7598e87475aad0f0b0da91.zip |
show blog contents
Diffstat (limited to 'src/views/blog')
-rw-r--r-- | src/views/blog/list-item.ecr | 7 | ||||
-rw-r--r-- | src/views/blog/post.ecr | 30 |
2 files changed, 36 insertions, 1 deletions
diff --git a/src/views/blog/list-item.ecr b/src/views/blog/list-item.ecr index 13131e0..23b868e 100644 --- a/src/views/blog/list-item.ecr +++ b/src/views/blog/list-item.ecr @@ -1,3 +1,8 @@ <div class='post'> - id: <%= @post_id %> + <b><%= h(@item["name"]) %></b><br/> + <b> + by <%= h(@item["user_name"]) %> + on <%= h(@item["posted_at_text"]) %> + </b><br/><br/> + <%= @item["body"] %> </div> diff --git a/src/views/blog/post.ecr b/src/views/blog/post.ecr new file mode 100644 index 0000000..d0aa534 --- /dev/null +++ b/src/views/blog/post.ecr @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html lang='en-US'> + <head> + <meta charset="utf-8"/> + <title><%= + h(@item["name"]) + %></title> + + <% + # TODO: add theme styles + %> + </head> + + <body> + <b>blog post</b> + + <div class='post'> + <b><%= h(@item["name"]) %></b><br/> + <b> + by <%= h(@item["user_name"]) %> + on <%= h(@item["posted_at_text"]) %> + </b><br/><br/> + <%= @item["body"] %> + </div> + </body> + + <% + # TODO: add theme scripts + %> +</html> |