Skip to content

Commit

Permalink
Fixed mrvautin#168 - Added voting to Twitter theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Moffat committed Apr 11, 2017
1 parent 4ef629b commit e9d1bfd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions public/themes/twitter/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,27 @@ p.subheading {
font-size: 14px;
}

#notify_message{
position: fixed;
display: none;
z-index: 9999;
padding-top: 10px;
height: 50px;
bottom: 0px;
width: 100%;
text-align: center;
font-size: 22px;
color: white;
}

.notify_message-success{
background-color: #18bc9c;
}

.notify_message-danger{
background-color: #e74c3c;
}

.searchResultList li a{
text-align: left;
color: #337ab7;
Expand Down
17 changes: 17 additions & 0 deletions public/themes/twitter/views/kb.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,23 @@
<div class="body_text">
{{{kb_body}}}
</div>
{{#if config.settings.allow_voting}}
<div class="row">
<div class="voting text-right col-lg-12">
<span>{{__ "Was this article helpful?"}}</span>
<button id="btnUpvote" class="btn btn-sm btn-default"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i></button>
<button id="btnDownvote" class="btn btn-sm btn-default"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i></button>
<span>
<strong>{{__ "Votes"}}:</strong>
{{#if result.kb_votes}}
{{result.kb_votes}}
{{else}}
0
{{/if}}
</span>
</div>
</div>
{{/if}}
{{#if config.settings.show_kb_meta}}
<div class="panel panel-primary" style="margin-top: 35px;">
<div class="panel-heading">Article details:</div>
Expand Down

0 comments on commit e9d1bfd

Please sign in to comment.