Project

General

Profile

Feature #39529 » feature-39528.patch

Mizuki ISHIKAWA, 2023-11-08 09:10

View differences:

app/helpers/application_helper.rb
elsif sep == "@"
name = remove_double_quotes(identifier)
u = User.visible.find_by("LOWER(login) = :s AND type = 'User'", :s => name.downcase)
link = link_to_user(u, :only_path => only_path, :class => 'user-mention', :mention => true) if u
css_classes = ['user-mention']
if u && obj && !obj.visible?(u)
css_classes += ['no-view-mentioned-user']
end
link = link_to_user(u, :only_path => only_path, :class => css_classes.join(' '), :mention => true) if u
end
end
(leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}"))
public/stylesheets/application.css
padding: 0.1em 0.1em;
border-radius: 0.1em;
}
a.user.user-mention.no-view-mentioned-user {
background-color: #F3EDD1;
}
#sidebar a.selected {line-height:1.7em; padding:1px 3px 2px 2px; margin-left:-2px; background-color:#9DB9D5; color:#fff; border-radius:2px;}
#sidebar a.selected:hover {text-decoration:none;}
(1-1/7)