New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard initial design #6229
Dashboard initial design #6229
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<div class="card-view" style="margin-left: -13px;"> | ||
<% current_user.subscriptions(:tag).each do |tag| %> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't have tags as per current user right ? It should be all the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi! As from what I understood, it should be specific to a user. I had a discussion about the same with @gauravano as well. The topic cards should be the ones followed by the user and all the updates regarding that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, let's ask @jywarren as he's available now for more clarity on this. |
||
<div class="card shadow-sm p-2 mb-3 bg-white rounded" > | ||
<div class="card-header mt-2" style=" padding:0.8em; background-color: inherit; border:none;"> | ||
<h4 style="display: inline-block;"><%= tag.tagname %></h4> | ||
<p style="display: inline-block; color: #808080;"><a style="text-decoration: underline; color: #808080;" href="/tag/<%= tag.tagname %>"><%= Tag.follower_count(tag.tagname) %> people</a> discussing</p> | ||
</div> | ||
<div class="card-body" style="padding:0.8em;"> | ||
<div class="node-list"> | ||
<% Tag.find_nodes_by_type(tag.tagname, type = 'note', limit = 3).each do |node| %> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In dashboard, we require all the nodes, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay! I'll add them as well. Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @CleverFool77! How do I add comments here, because we cannot associate comments with any topic? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shall we approach this the same way as on the profile page, by making a new page similar to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could make it a pretty simple page, just a table like /comments maybe? |
||
<div class="node-body"> | ||
<% if node.main_image %> | ||
<img class="rounded-circle" id="profile-photo" style="width:20px; height:20px; margin-right:8px; display: inline-block;" src="<%= node.main_image.path(:default) %>" /> | ||
<% elsif node.scraped_image %> | ||
<img class="rounded-circle" id="profile-photo" style="width:20px; height:20px; margin-right:8px; display: inline-block;" src="<%= node.scraped_image %>" /> | ||
<% else %> | ||
<div class="circle"></div> | ||
<% end %> | ||
<p style="display: inline-block; margin-left: 10px;"><a style="color: inherit;" <% if @widget %>target="_blank"<% end %> href="<%= node.path %>"><%= (node.type == 'note') ? node.title : node.latest.title %></a></p> | ||
<p style="display: inline-block; margin-left: 10px;color: #808080;">by <a style="color: #808080;" <% if @widget %>target="_blank"<% end %> href="/profile/<%= node.author.name %>">@<%= node.author.name %></a></p> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="card-footer" style="background-color: inherit; border:none;"> | ||
<a style="text-decoration: underline; color: #808080; display: inline-block;" href="/tag/<%= tag.tagname %>"><%= Tag.follower_count(tag.tagname).to_i-1 %> <%= t('tag.index.more_posts') %> <i class="fa fa-angle-double-right"></i></a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar as above, Not just notes, but need to include comments,questions too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Questions and notes have already been added! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here notes are covering all the posts made. I think the only portion not covered here are the wikis and the comments. We can discuss about them with @jywarren ! |
||
|
||
<a style="float: right; width: 100px;" rel="tooltip" title="<%= t('sidebar._post_button.share_your_work') %>" data-placement="bottom" href="/post?tags=<%= tag.tagname %>" class="btn btn-primary btn-sm">New post <i class="fa fa-plus fa-white"></i></a> | ||
<% if current_user %> | ||
<div id="follow-unfollow-column-<%=tag.tid%>" style="float: right; margin-right: 10px;"> | ||
<% if current_user.following(tag.tagname) %> | ||
<a style="width: 100px;" rel="tooltip" title="<%= t('tag.show.unfollow') %>" class="btn btn-light btn-sm active" href="/unsubscribe/tag/<%= tag.tagname %>"></i> <%= t('tag.index.unsubscribe') %></a> | ||
<% else %> | ||
<a style="width: 100px;" class="btn btn-outline-secondary btn-sm index-follow-buttons follow-btn-remote" href="/subscribe/tag/<%= tag.name %>" data-remote="true"><%= t('tag.index.subscribe') %></a> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<style> | ||
|
||
.node-list { | ||
display: grid; | ||
} | ||
|
||
.node-body { | ||
display: flex; | ||
} | ||
|
||
.circle { | ||
background-color: gray; | ||
height: 20px; | ||
width: 20px; | ||
border-radius: 100%; | ||
} | ||
|
||
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gautamig54 May I know why is this section commented ? 馃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not have the welcome text as such in the new design. It is more like an alert message. I'll add the alert message text. Should I completely delete this part?