diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 6db475365..19c73de32 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -9,6 +9,7 @@ @import 'pages'; @import 'legislation'; @import 'legislation_process'; +@import 'community'; @import 'custom'; @import 'c3'; @import 'annotator.min'; diff --git a/app/assets/stylesheets/community.scss b/app/assets/stylesheets/community.scss new file mode 100644 index 000000000..643f7b994 --- /dev/null +++ b/app/assets/stylesheets/community.scss @@ -0,0 +1,50 @@ +.communities-show{ + + .wide-order-selector{ + margin-top: 0; + } + + .panel{ + background: #fff; + border: 1px solid; + border-color: #e5e6e9 #dfe0e4 #d0d1d5; + border-radius: 0; + box-shadow: 0 1px 3px 0 #dee0e3; + margin-bottom: 0.75rem; + min-height:7rem; + padding: 0.75rem 0.75rem 0; + } + + .panel { + h3{ + font-weight: bold; + margin-top: $line-height / 2; + } + + a { + color: $text; + } + .nopadding{ + padding: 0; + } + .button{ + margin-top: $line-height; + } + + .topic-info{ + + color: #515151; + font-size: 0.875rem; + margin: 0.375rem 0 0; + + .icon-comments { + font-size: rem-calc(16); + vertical-align: top; + } + + a { + color: $text-medium; + } + } + } +} diff --git a/app/views/topics/_form.html.erb b/app/views/topics/_form.html.erb index 192e11fff..a5cc1532f 100644 --- a/app/views/topics/_form.html.erb +++ b/app/views/topics/_form.html.erb @@ -4,14 +4,13 @@
- <%= link_to t("proposals.proposal.comments", count: topic.comments_count), community_topic_path(@community, topic, anchor: "comments") %> - <%= topic.author.name %> - <%= I18n.l topic.created_at %> -
- - <% if topic.author == current_user %> - <%= link_to t("topic.edit"), edit_community_topic_path(@community.id, topic), class: 'button expanded' %> - <% end %> ++ + <%= link_to t("proposals.proposal.comments", count: topic.comments_count), community_topic_path(@community, topic, anchor: "comments") %> + • + <%= I18n.l topic.created_at.to_date %> + • + <%= topic.author.name %> +
+