Disabled Ubuntu reviews
The reviews are pretty useless. People refer to bugs or old versions or just don't know how to use a piece of software. This is not helpful.
This commit is contained in:
parent
4a2f21631a
commit
fe6430322b
4 changed files with 32 additions and 30 deletions
|
|
@ -238,12 +238,12 @@ class PackagesController < ApplicationController
|
|||
end
|
||||
|
||||
# Show an HTML partial with reviews of this package from the Ubuntu API
|
||||
def reviews
|
||||
expires_in 1.day, public: true
|
||||
# @reviews = Package.find_by_name!(params[:name]).ubuntu_reviews
|
||||
@reviews = get_ubuntu_reviews params[:name]
|
||||
render '_reviews', layout: false
|
||||
end
|
||||
# def reviews
|
||||
# expires_in 1.day, public: true
|
||||
# # @reviews = Package.find_by_name!(params[:name]).ubuntu_reviews
|
||||
# @reviews = get_ubuntu_reviews params[:name]
|
||||
# render '_reviews', layout: false
|
||||
# end
|
||||
|
||||
private
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue