Skip to content

Commit

Permalink
student header link style
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Oct 26, 2024
1 parent 505ead5 commit e823ddb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/bootstrap_and_overrides.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,9 @@ form.thesis-form {
}
}
}
a.header-student-name:link {
text-decoration: none;
}
a.header-student-name:hover {
text-decoration: underline;
}
2 changes: 1 addition & 1 deletion app/views/students/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<span class="fw-lighter text-secondary d-block lead ">Student Record</span>
<div class="col-sm-12 col-lg-7">
<h1 title="<%= @student.sisid %>">
<%= link_to_unless controller.controller_name == "students" && controller.action_name == "show", @student.name, @student, title: @student.sisid %>
<%= link_to_unless controller.controller_name == "students" && controller.action_name == "show", @student.name, @student, title: @student.sisid, class: "header-student-name" %>
<% if @student.blocked? %><i class="fa fa-ban text-danger" title="blocked"></i><% end %>
</h1>
<p class="trivial fw-light text-warning-emphasis mb-0">Created by <%= @student.created_by.name%>
Expand Down

0 comments on commit e823ddb

Please sign in to comment.