-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improves html markup on communities and topics views
- Loading branch information
Showing
9 changed files
with
77 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<h3><%= t("community.show.create_first_community_topic.first_theme") %></h3> | ||
<p class="lead"><%= t("community.show.create_first_community_topic.first_theme") %></p> | ||
|
||
<% if user_signed_in? %> | ||
<%= t("community.show.create_first_community_topic.first_theme_not_logged_in") %> | ||
<div class="callout primary"> | ||
<%= t("community.show.create_first_community_topic.first_theme_not_logged_in") %> | ||
</div> | ||
<% else %> | ||
<div class="callout primary"> | ||
<%= t("community.show.create_first_community_topic.sub_first_theme", | ||
link: link_to(t("community.show.create_first_community_topic.sign_link", | ||
org_name: setting['org_name']), new_user_session_path)).html_safe %> | ||
sign_in: link_to(t("community.show.create_first_community_topic.sign_in"), new_user_session_path), | ||
sign_up: link_to(t("community.show.create_first_community_topic.sign_up"), new_user_registration_path)).html_safe %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
<div class="small-12 medium-3 column"> | ||
<h2><%= t("community.topic.sidebar.recommendations_title") %></h2> | ||
|
||
<span class="icon-proposals float-right"></span> | ||
|
||
<h2><%= t("community.topic.sidebar.recommendations_title") %></h2> | ||
|
||
<ul class="recommendations"> | ||
<li><%= t("community.topic.sidebar.recommendation_one") %></li> | ||
<li><%= t("community.topic.sidebar.recommendation_two") %></li> | ||
<li><%= t("community.topic.sidebar.recommendation_three") %></li> | ||
</ul> | ||
|
||
</div> | ||
<ul class="recommendations"> | ||
<li><%= t("community.topic.sidebar.recommendation_one") %></li> | ||
<li><%= t("community.topic.sidebar.recommendation_two") %></li> | ||
<li><%= t("community.topic.sidebar.recommendation_three") %></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<div class="topic-form row"> | ||
<div class="row"> | ||
|
||
<div class="small-12 medium-9 column"> | ||
<%= back_link_to community_path(@community) %> | ||
<h1><%= t("community.topic.edit") %></h1> | ||
<%= render "form" %> | ||
</div> | ||
|
||
<%= render "recommendations" %> | ||
|
||
<div class="small-12 medium-3 column"> | ||
<%= render "recommendations" %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<div class="topic-new row"> | ||
<div class="row"> | ||
|
||
<div class="small-12 medium-9 column"> | ||
<%= back_link_to community_path(@community) %> | ||
<h1><%= t("community.topic.create") %></h1> | ||
<%= render 'form' %> | ||
</div> | ||
|
||
<%= render "recommendations" %> | ||
|
||
<div class="small-12 medium-3 column"> | ||
<%= render "recommendations" %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,47 @@ | ||
<div class="row topic-show"> | ||
<div class="small-12 medium-12 column"> | ||
<div class="topic-show"> | ||
<div class="row margin-bottom"> | ||
<div class="small-12 medium-9 column"> | ||
|
||
<%= back_link_to community_path(@community) %> | ||
<br> | ||
<%= back_link_to community_path(@community), t("community.show.back", | ||
community: community_text(@community), | ||
proposal: community_title(@community)) %> | ||
|
||
<p><%= community_text(@community) %> <strong><%= community_title(@community) %></strong></p> | ||
<h1><%= @topic.title %></h1> | ||
<div class="topic-info"> | ||
<p><%= @topic.description %></p> | ||
<%= render '/shared/author_info', resource: @topic %> | ||
<h1><%= @topic.title %></h1> | ||
|
||
<span class="bullet"> • </span> | ||
<%= l @topic.created_at.to_date %> | ||
<span class="bullet"> • </span> | ||
<span class="icon-comments"></span> | ||
</div> | ||
<div class="topic-info margin-bottom"> | ||
<%= render '/shared/author_info', resource: @topic %> | ||
|
||
<div class="tabs-content" data-tabs-content="topics-tabs" role="tablist"> | ||
<%= render "topics/filter_subnav" %> | ||
<div class="tabs-panel is-active" id="tab-comments"> | ||
<%= render "topics/comments" %> | ||
<span class="bullet"> • </span> | ||
<%= l @topic.created_at.to_date %> | ||
<span class="bullet"> • </span> | ||
<span class="icon-comments"></span> | ||
<%= link_to t("community.show.topic.comments", count: @topic.comments_count), | ||
community_topic_path(@community, @topic, anchor: "comments") %> | ||
</div> | ||
<br> | ||
<p><%= @topic.description %></p> | ||
</div> | ||
|
||
<% if @topic.author == current_user %> | ||
<aside class="small-12 medium-3 column"> | ||
<div class="sidebar-divider"></div> | ||
<h2><%= t("community.show.author") %></h2> | ||
<%= link_to t("community.show.topic.edit"), | ||
edit_community_topic_path(@community.id, @topic), | ||
class: 'button hollow expanded' %> | ||
<%= link_to t("community.show.topic.destroy"), | ||
community_topic_path(@community.id, @topic), method: :delete, | ||
class: 'button hollow expanded alert' %> | ||
</aside> | ||
<% end %> | ||
</div> | ||
|
||
|
||
<div class="tabs-content" data-tabs-content="topics-tabs" role="tablist"> | ||
<%= render "topics/filter_subnav" %> | ||
<div class="tabs-panel is-active" id="tab-comments"> | ||
<%= render "topics/comments" %> | ||
</div> | ||
|
||
</div> | ||
</div> |