We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9a3f6 commit 70ca475Copy full SHA for 70ca475
1 file changed
app/controllers/names_controller.rb
@@ -108,7 +108,22 @@ def index(opts = {})
108
109
@count = @names.count
110
@count = @count.size if @count.is_a? Hash
111
- @crumbs = ['Names']
+ @crumbs = [['Names', names_path]]
112
+ if @user.present?
113
+ bu = "by #{@user.username}"
114
+ if @status == 'all'
115
+ @crumbs << bu
116
+ else
117
+ @crumbs << [bu, names_path(user: @user.username)],
118
+ @crumbs << @status.gsub(/^\S/, &:upcase)
119
+ end
120
121
+ if @status == 'public'
122
+ @crumbs[0] = 'Names'
123
124
125
126
127
end
128
129
# GET /type-genomes
0 commit comments