Skip to content

Commit

Permalink
updating layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderson Orui committed Oct 3, 2013
1 parent 83ba424 commit 9f3a365
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
31 changes: 18 additions & 13 deletions forum/templates/question.html
Expand Up @@ -51,22 +51,27 @@ <h1 class="top"><i class="icon-double-angle-right"></i> {{ question.course.name
<!-- QUESTION -->
<article class="question">
<header>
<h1>{{ question.title }}</h1>
</header>
<div class="row">
<div class="col-sm-2 col-lg-2">
<div class="row">
<div class="rating col-sm-12 col-lg-12" ng-app="vote" ng-controller="QuestionVoteCtrl">
<div class="arrow-up" ng-class="user_question_vote_up" ng-click=voteUp()></div>
<div class="votes" ng-init="question_votes={{ question.count_votes }}">{% verbatim angularjs %}{{ question_votes }}{% endverbatim angularjs %}</div>
<div class="arrow-down" ng-class="user_question_vote_down" ng-click=voteDown()></div>
</div><!-- .rating -->
<div class="row">
<div class="col-sm-2 col-lg-2">
<div class="row">
<div class="rating col-sm-12 col-lg-12" ng-app="vote" ng-controller="QuestionVoteCtrl">
<div class="arrow-up" ng-class="user_question_vote_up" ng-click=voteUp()></div>
<div class="votes" ng-init="question_votes={{ question.count_votes }}">{% verbatim angularjs %}{{ question_votes }}{% endverbatim angularjs %}</div>
<div class="arrow-down" ng-class="user_question_vote_down" ng-click=voteDown()></div>
</div><!-- .rating -->
</div>
</div>
<div class="author clearfix">
pergunta feita em <strong>{{ question.timestamp|date:"j/m/y" }}</strong> por <a href="profile.html">{{ question.user.username }}</a>

<div class="col-lg-10">
<h1 class="top">{{ question.title }}</h1>
<p class="author clearfix">
Pergunta feita em <strong>{{ question.timestamp|date:"j/m/y" }}</strong> por <a href="profile.html">{{ question.user.username }}</a>
</p>
</div>
</div>
<div class="question-body col-sm-10 col-lg-10">
</header>
<div class="row">
<div class="question-body col-sm-10 col-lg-10 col-lg-offset-2">
<p>{{ question.text|my_markdown }}</p>
</div><!-- .question-body -->
</div>
Expand Down
1 change: 1 addition & 0 deletions static/css/main.less
Expand Up @@ -933,6 +933,7 @@ a.instructor {
// FORUM
#course-forum {
#main-content {
margin-top:20px;
a.ask-a-question {
display:block;
}
Expand Down

0 comments on commit 9f3a365

Please sign in to comment.