mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
tag autocomplete and better browsing
This commit is contained in:
parent
581398f826
commit
1ac9cdf606
9 changed files with 1956 additions and 96 deletions
4
app.rb
4
app.rb
|
@ -266,6 +266,10 @@ post '/tags/remove' do
|
|||
redirect request.referer
|
||||
end
|
||||
|
||||
get '/tags/suggestions/:name.json' do |name|
|
||||
Tag.suggestions(name).collect {|t| t.name}.to_json
|
||||
end
|
||||
|
||||
get '/browse' do
|
||||
@current_page = params[:current_page]
|
||||
@current_page = @current_page.to_i
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue