Project

General

Profile

Feature #39529 » feature-39528.patch

Mizuki ISHIKAWA, 2023-11-08 09:10

View differences:

app/helpers/application_helper.rb
1275 1275
          elsif sep == "@"
1276 1276
            name = remove_double_quotes(identifier)
1277 1277
            u = User.visible.find_by("LOWER(login) = :s AND type = 'User'", :s => name.downcase)
1278
            link = link_to_user(u, :only_path => only_path, :class => 'user-mention', :mention => true) if u
1278
            css_classes = ['user-mention']
1279
            if u && obj && !obj.visible?(u)
1280
              css_classes += ['no-view-mentioned-user']
1281
            end
1282
            link = link_to_user(u, :only_path => only_path, :class => css_classes.join(' '), :mention => true) if u
1279 1283
          end
1280 1284
        end
1281 1285
        (leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}"))
public/stylesheets/application.css
159 159
  padding: 0.1em 0.1em;
160 160
  border-radius: 0.1em;
161 161
}
162
a.user.user-mention.no-view-mentioned-user {
163
  background-color: #F3EDD1;
164
}
162 165

  
163 166
#sidebar a.selected {line-height:1.7em; padding:1px 3px 2px 2px; margin-left:-2px; background-color:#9DB9D5; color:#fff; border-radius:2px;}
164 167
#sidebar a.selected:hover {text-decoration:none;}
(1-1/6)