diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2011-08-17 00:24:50 +0200 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2011-08-17 00:24:50 +0200 |
commit | cb9fc6d901c59999f3ebd369449e4a845680665d (patch) | |
tree | d142cc1a9256225498fecdd56386c870777f69e8 /settings/templates | |
parent | 9f28c20660e113c501a951262765ce9c9c4d0e84 (diff) | |
download | nextcloud-server-cb9fc6d901c59999f3ebd369449e4a845680665d.tar.gz nextcloud-server-cb9fc6d901c59999f3ebd369449e4a845680665d.zip |
make the help section working and pretty. knowledge base entries are fetched via OCS from a different server. cool stuff
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/help.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/settings/templates/help.php b/settings/templates/help.php index 4cd748c3dff..3a7edfa9b22 100644 --- a/settings/templates/help.php +++ b/settings/templates/help.php @@ -1,14 +1,15 @@ <?php if(is_null($_["kbe"])):?> Can't connect to Q&A database <?php else:?> - <table id="help" cellspacing="20"> + <table class="help"> <tbody> <?php foreach($_["kbe"] as $kb): ?> - <tr> + <tr class="entryrow"> <td width="1"><?php if($kb["preview1"] <> "") { echo('<img class="preview" border="0" src="'.$kb["preview1"].'" />'); } ?> </a></td> - <td class="name"><p><strong><?php echo $kb["name"]; ?></strong></p><?php echo('<span class="type">'.$kb['description'].'</span>'); ?> + <td class="entry"><p><strong><?php echo $kb["name"]; ?></strong></p><?php echo('<span class="type">'.$kb['description'].'</span>'); ?> <?php if($kb['answer']<>'') echo('<br /><span class="type"><b>Answer:</b></span><br /><span class="type">'.$kb['answer'].'</span>');?> - </td> + <?php if($kb['detailpage']<>'') echo('<br /><a target="_blank" href="'.$kb['detailpage'].'"><b>read more</b></a>')?> + <br /></td> </tr> <?php endforeach; ?> </tbody> @@ -18,7 +19,7 @@ $pageNavi=OC_Util::getPageNavi($_['pagecount'],$_['page'],$url); $pageNavi->printPage(); ?> - <a target="_blank" class="prettybutton" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new"><?php echo $l->t( 'Ask a question' ); ?></a> + <br /><a target="_blank" class="newquestion" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new"><?php echo $l->t( 'Ask a question' ); ?></a> <?php endif;?> |