diff options
Diffstat (limited to 'settings/templates/help.php')
-rw-r--r-- | settings/templates/help.php | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/settings/templates/help.php b/settings/templates/help.php index 3a7edfa9b22..31f6101c1ef 100644 --- a/settings/templates/help.php +++ b/settings/templates/help.php @@ -1,25 +1,21 @@ <?php if(is_null($_["kbe"])):?> - Can't connect to Q&A database + <div class="personalblock"> + <p><?php echo $l->t('Problems connecting to help database.');?> + <a href="http://apps.owncloud.com/kb"><?php echo $l->t('Go there manually.');?></a> + </div> <?php else:?> - <table class="help"> - <tbody> - <?php foreach($_["kbe"] as $kb): ?> - <tr class="entryrow"> - <td width="1"><?php if($kb["preview1"] <> "") { echo('<img class="preview" border="0" src="'.$kb["preview1"].'" />'); } ?> </a></td> - <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>');?> - <?php if($kb['detailpage']<>'') echo('<br /><a target="_blank" href="'.$kb['detailpage'].'"><b>read more</b></a>')?> - <br /></td> - </tr> - <?php endforeach; ?> - </tbody> - </table> + <?php foreach($_["kbe"] as $kb): ?> + <div class="personalblock"> + <?php if($kb["preview1"] <> "") { echo('<img class="preview" src="'.$kb["preview1"].'" />'); } ?> + <p><strong><?php if($kb['detailpage']<>'') echo('<p><a target="_blank" href="'.$kb['detailpage'].'"><strong>'.$kb["name"].'</strong></a></p>');?></strong></p> + <p><?php echo $kb['description'];?></p> + <?php if($kb['answer']<>'') echo('<p><strong>'.$l->t('Answer').':</strong><p>'.$kb['answer'].'</p>');?> + </div> + <?php endforeach; ?> + + <a class="button newquestion" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new" target="_blank"><?php echo $l->t( 'Ask a question' ); ?></a> <?php $url=OC_Helper::linkTo( "settings", "help.php" ).'?page='; $pageNavi=OC_Util::getPageNavi($_['pagecount'],$_['page'],$url); $pageNavi->printPage(); - ?> - <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;?> - - +endif?> |