diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-15 10:38:05 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-15 10:38:05 +0100 |
| commit | 002371920d6f9acedaf987f273bb138a95353ffd (patch) | |
| tree | 40a99ed7db2814504d056ee535460f2b0a301d21 /app/views | |
| parent | e46f849f1f8b3e2a002ac3b124331011a86f9ea3 (diff) | |
| download | operum-002371920d6f9acedaf987f273bb138a95353ffd.tar.gz operum-002371920d6f9acedaf987f273bb138a95353ffd.zip | |
Fixed search for tags with spaces
We should not split the body mindlessly, but we have to be more careful
about it.
Moreover, this commit also polishes the order for tags inside of
comments.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/tags/_taggable.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tags/_taggable.html.erb b/app/views/tags/_taggable.html.erb index 84e236b..5d848d0 100644 --- a/app/views/tags/_taggable.html.erb +++ b/app/views/tags/_taggable.html.erb @@ -3,7 +3,7 @@ <h5><%= I18n.t('tags.title') %> — <%= link_to I18n.t('tags.new-action'), new_tag_path %></h5> <div class="flex-list"> - <% Tag.find_each do |tag| %> + <% Tag.order(:name).find_each do |tag| %> <div class="flex-element"> <label> <%= form.check_box :tag_ids, { multiple: true, checked: tag_references&.include?(tag.id) }, tag.id, nil %> |
