From f45efcab780cefaaa5a677684ac1fc444632a3de Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Fri, 12 Jul 2013 23:01:55 +0100 Subject: Small amount of work on webpages. --- mod/webpages.php | 7 +++++-- view/theme/redbasic/css/dark.css | 14 +++++++++++++- view/theme/redbasic/css/style.css | 14 +++++++++++++- view/tpl/webpagelist.tpl | 21 +++++++++++---------- 4 files changed, 42 insertions(+), 14 deletions(-) diff --git a/mod/webpages.php b/mod/webpages.php index 1e9efa544..0567f1b32 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -65,8 +65,11 @@ $r = q("select * from item_id where uid = %d and service = 'WEBPAGE'", // This isn't pretty, but it works. Until I figure out what to do with the UI, it's Good Enough(TM). return $o . replace_macros(get_markup_template("webpagelist.tpl"), array( - '$editlink' => t('Edit'), - '$pages' => $pages, + '$editlink' => t('Edit'), + '$pages' => $pages, + '$channel' => $a->profile['channel_address'], + '$view' => t('View'), + )); diff --git a/view/theme/redbasic/css/dark.css b/view/theme/redbasic/css/dark.css index 74e109f95..43912be69 100644 --- a/view/theme/redbasic/css/dark.css +++ b/view/theme/redbasic/css/dark.css @@ -167,4 +167,16 @@ ul.menu-popup .menu-sep { .my-comment-photo { border-radius: 5px; box-shadow: 4px 4px 3px #000; -} \ No newline at end of file +} + + +div#pagelist-content-wrapper { +width: 80%; +background: #111; +margin-left: auto; +margin-right: auto; +} + +div.page-list-item { +margin: 20px; +} diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 762c35a18..9caa9145a 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -3893,4 +3893,16 @@ width: 200px; float: left; margin-right: 25px; } -*/ \ No newline at end of file +*/ + + +div#pagelist-content-wrapper { +width: 80%; +background: #fff; +margin-left: auto; +margin-right: auto; +} + +div.page-list-item { +margin: 20px; +} diff --git a/view/tpl/webpagelist.tpl b/view/tpl/webpagelist.tpl index c05e2ebee..5c00dee6b 100644 --- a/view/tpl/webpagelist.tpl +++ b/view/tpl/webpagelist.tpl @@ -1,12 +1,13 @@ {{if $pages}} -
-{{foreach $pages as $key => $items}} - -
-
-{{/foreach}} + +
+ {{foreach $pages as $key => $items}} + {{foreach $items as $item}} +
{{$editlink}} | {{$view}} {{$item.title}}
+ {{/foreach}} + {{/foreach}} +
+ +
+ {{/if}} -- cgit v1.2.3