Commit c4e38874 authored by Leonardo Piccioni de Almeida's avatar Leonardo Piccioni de Almeida
Browse files

Forum embed.

parent dcea17f1
......@@ -133,7 +133,7 @@
// --------------------------------------------------
.forums-widget {
@include card(rgba(#fff,0.5));
@include card(transparent);
.widget-filter {
@include icon(after, search);
......@@ -152,7 +152,7 @@ a {
.forums-widget {
.btn {
&.list-all, &.see-stats {
@include button-hover(#fff,#fff,rgba($orange,0.6),$orange);
@include button-hover(#fff,#fff,$brand-primary,darken($brand-primary, 10%));
{% extends 'base.html' %}
{% load i18n %}
{% load staticfiles %}
{% load compress %}
{% block js %}
{{ block.super }}
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src="{% static 'js/' %}"></script>
{% compress js %}
<script type="text/javascript" src="{% static 'js/discussion-app.js' %}"></script>
<script type="text/javascript" src="{% static 'js/discussion-controllers.js' %}"></script>
<script type="text/javascript" src="{% static 'js/discussion-services.js' %}"></script>
<script type="text/javascript" src="{% static 'js/discussion-directives.js' %}"></script>
<script type="text/javascript" src="{% static 'js/discussion-filters.js' %}"></script>
{% endcompress %}
{% endblock %}
{% block body_attrs %}
{% endblock %}
{% block content %}
{% verbatim %}
<script type="text/ng-template" id="forum-embed.html">
<section class="widget forums forums-widget container-fluid forum-embed">
<header class="widget-header line one-column">
<div class="column">
<div class="pull-left">
<h2 class="widget-title">Fóruns</h2>
<div class="pull-right hidden-xs">
<a class="btn btn-success list-all" href="/discussion/">mostrar todos</a>
<a class="btn btn-success new-topic" href="/discussion/topic/new/#!/topic/new/">criar novo tópico</a>
<div class="pull-right dropdown visible-xs">
<button class="btn btn-default list-all dropdown-toggle" type="button" id="dropdownOptions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<ul class="dropdown-menu dropdown-options" aria-labelledby="dropdownOptions">
<li><a href="/discussion/">mostrar todos</a></li>
<li><a href="/discussion/topic/new/#!/topic/new/">criar novo tópico</a></li>
<div class="line one-column">
<div class="column">
<h3 class="section-title">Últimas Postagens</h3>
<div class="line two-column fifty-fifty">
<div class="user-update column" ng-repeat="topic in latest_topics">
<div class="user-icon">
<img ng-src="{{}}" alt="{{}}" />
<div class="info">
<a ng-href="/profile/{{ }}"><b>{{}}</b></a> comentou no tópico <a ng-href="/discussion/topic/#!/topic/{{}}/" class="thread-name">{{topic.title | charLimiter:50}}</a>
no fórum <a ng-href="/discussion/#!/forum/{{ }}">{{topic.forum_info.title}}</a></span>
<div class="actions">
<span class="action last-update">Última atividade <b>{{ topic.last_activity_at | dateFilter }}</b></span>
<span class="action liked"
ng-class="{ 'active': topic.count_likes }">{{topic.count_likes}} {{topic.count_likes > 1 || topic.count_likes == 0? 'gostaram':'gostou'}}</span>
<span class="action replies"
ng-class="{ 'active': topic.count_replies }">{{topic.count_replies}} {{topic.count_replies > 1 || topic.count_replies == 0? 'comentários':'comentário'}}</span>
{% endverbatim %}
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment