Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make profile user links more prominent #6255

Merged
merged 1 commit into from
Sep 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions app/views/users/profile.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

<br />

<p style="width: 100%; text-align: center; border-bottom: 1px solid #ccc; line-height:2px; margin: 10px 0 20px;">
<div style="text-align: center;">
<h5><a href='/notes/author/<%= @profile_user.name %>'><%= @profile_user.note_count %> research notes</a>
<a class="ml-2" href = "/tag/question:*/author/<%= params[:id] %>"><%= Node.questions.where(status: 1, uid: @profile_user.id).length %> questions </a></h5>
</div>

<p style="width: 100%; text-align: center; border-bottom: 1px solid #ccc; line-height:2px; margin: 21px 0 20px;">
<span style="background-color: #fff; padding: 0 10px; color: #808080;">
<h7>Most Common Tags</h7>
</span>
Expand Down Expand Up @@ -245,7 +250,7 @@
<div class="info float:left">
<ul>
<li class="mt-3"><h5>@<%= @profile_user.name %> has</h5></li>
<li><h5><%= @profile_user.note_count %><a href='/notes/author/<%= @profile_user.name %>'> research notes</a></h5></li>
<li><h5><a href='/notes/author/<%= @profile_user.name %>'><%= @profile_user.note_count %> research notes</a></h5></li>
<li><h5><%= @profile_user.revisions.count %> wiki edits</h5></li>
<li><h5><a href = "/tag/question:*/author/<%= params[:id] %>"><%= Node.questions.where(status: 1, uid: @profile_user.id).length %> questions </a></h5></li>
<li><h5><%= Comment.where(uid: @profile_user.id).count %> comments</h5></li>
Expand Down Expand Up @@ -349,12 +354,17 @@
font-weight: bold;
}

h5 a:hover {
h5 a{
color: blue !important;
text-decoration: underline;
font-weight:bold;
}

.links {
font-size: 18px;
padding: 8px 5px 8px 4px;
}

</style>

<%= stylesheet_link_tag "dashboard" %>
Expand Down