#29: removed hack for encoding
This commit is contained in:
parent
dbea9152b8
commit
e055d0080b
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ActivityFeedsController < ApplicationController
|
class ActivityFeedsController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Admin::BaseController < ApplicationController
|
class Admin::BaseController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
load_and_authorize_resource
|
load_and_authorize_resource
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Admin::EventLogsController < Admin::BaseController
|
class Admin::EventLogsController < Admin::BaseController
|
||||||
def index
|
def index
|
||||||
@event_logs = EventLog.default_order.eager_loading.paginate :page => params[:page]
|
@event_logs = EventLog.default_order.eager_loading.paginate :page => params[:page]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Admin::RegisterRequestsController < Admin::BaseController
|
class Admin::RegisterRequestsController < Admin::BaseController
|
||||||
def index
|
def index
|
||||||
@register_requests = @register_requests.send((params[:scope] || 'unprocessed').to_sym).paginate(:page => params[:page])
|
@register_requests = @register_requests.send((params[:scope] || 'unprocessed').to_sym).paginate(:page => params[:page])
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Admin::UsersController < Admin::BaseController
|
class Admin::UsersController < Admin::BaseController
|
||||||
include AvatarHelper
|
include AvatarHelper
|
||||||
prepend_before_filter :find_user
|
prepend_before_filter :find_user
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class AdvisoriesController < ApplicationController
|
class AdvisoriesController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user! if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user! if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::AdvisoriesController < Api::V1::BaseController
|
class Api::V1::AdvisoriesController < Api::V1::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::ArchesController < Api::V1::BaseController
|
class Api::V1::ArchesController < Api::V1::BaseController
|
||||||
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
|
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::BaseController < ApplicationController
|
class Api::V1::BaseController < ApplicationController
|
||||||
#respond_to :json
|
#respond_to :json
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::BuildListsController < Api::V1::BaseController
|
class Api::V1::BuildListsController < Api::V1::BaseController
|
||||||
|
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::GroupsController < Api::V1::BaseController
|
class Api::V1::GroupsController < Api::V1::BaseController
|
||||||
|
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::PlatformsController < Api::V1::BaseController
|
class Api::V1::PlatformsController < Api::V1::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:show, :platforms_for_build, :members] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:show, :platforms_for_build, :members] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::ProductBuildListsController < Api::V1::BaseController
|
class Api::V1::ProductBuildListsController < Api::V1::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::ProductsController < Api::V1::BaseController
|
class Api::V1::ProductsController < Api::V1::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::ProjectsController < Api::V1::BaseController
|
class Api::V1::ProjectsController < Api::V1::BaseController
|
||||||
|
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::RepositoriesController < Api::V1::BaseController
|
class Api::V1::RepositoriesController < Api::V1::BaseController
|
||||||
|
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::SearchController < Api::V1::BaseController
|
class Api::V1::SearchController < Api::V1::BaseController
|
||||||
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
|
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Api::V1::UsersController < Api::V1::BaseController
|
class Api::V1::UsersController < Api::V1::BaseController
|
||||||
|
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
AIRBRAKE_IGNORE = [ActionController::InvalidAuthenticityToken,
|
AIRBRAKE_IGNORE = [ActionController::InvalidAuthenticityToken,
|
||||||
AbstractController::ActionNotFound]
|
AbstractController::ActionNotFound]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class AutocompletesController < ApplicationController
|
class AutocompletesController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ContactsController < ApplicationController
|
class ContactsController < ApplicationController
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Groups::BaseController < ApplicationController
|
class Groups::BaseController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_group
|
before_filter :find_group
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Groups::MembersController < Groups::BaseController
|
class Groups::MembersController < Groups::BaseController
|
||||||
is_related_controller!
|
is_related_controller!
|
||||||
belongs_to :group, :finder => 'find_by_insensitive_uname!', :optional => true
|
belongs_to :group, :finder => 'find_by_insensitive_uname!', :optional => true
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Groups::ProfileController < Groups::BaseController
|
class Groups::ProfileController < Groups::BaseController
|
||||||
include AvatarHelper
|
include AvatarHelper
|
||||||
load_and_authorize_resource :class => Group, :instance_name => 'group'
|
load_and_authorize_resource :class => Group, :instance_name => 'group'
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class PagesController < ApplicationController
|
class PagesController < ApplicationController
|
||||||
# before_filter :authenticate_user!, :except => [:show, :main, :forbidden]
|
# before_filter :authenticate_user!, :except => [:show, :main, :forbidden]
|
||||||
# load_and_authorize_resource
|
# load_and_authorize_resource
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platforms::BaseController < ApplicationController
|
class Platforms::BaseController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platforms::MaintainersController < ApplicationController
|
class Platforms::MaintainersController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:index] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:index] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platforms::PlatformsController < Platforms::BaseController
|
class Platforms::PlatformsController < Platforms::BaseController
|
||||||
|
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platforms::PrivateUsersController < Platforms::BaseController
|
class Platforms::PrivateUsersController < Platforms::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_platform_and_private_users
|
before_filter :find_platform_and_private_users
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platforms::PrivatesController < Platforms::BaseController
|
class Platforms::PrivatesController < Platforms::BaseController
|
||||||
require 'digest/sha2'
|
require 'digest/sha2'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platforms::ProductBuildListsController < Platforms::BaseController
|
class Platforms::ProductBuildListsController < Platforms::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:index, :show, :log] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:index, :show, :log] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platforms::ProductsController < Platforms::BaseController
|
class Platforms::ProductsController < Platforms::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platforms::RepositoriesController < Platforms::BaseController
|
class Platforms::RepositoriesController < Platforms::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:index, :show, :projects_list] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:index, :show, :projects_list] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::BaseController < ApplicationController
|
class Projects::BaseController < ApplicationController
|
||||||
prepend_before_filter :find_project
|
prepend_before_filter :find_project
|
||||||
before_filter :init_statistics
|
before_filter :init_statistics
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::BuildListsController < Projects::BaseController
|
class Projects::BuildListsController < Projects::BaseController
|
||||||
NESTED_ACTIONS = [:search, :index, :new, :create]
|
NESTED_ACTIONS = [:search, :index, :new, :create]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::CollaboratorsController < Projects::BaseController
|
class Projects::CollaboratorsController < Projects::BaseController
|
||||||
respond_to :html, :json
|
respond_to :html, :json
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::CommentsController < Projects::BaseController
|
class Projects::CommentsController < Projects::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
load_and_authorize_resource :project
|
load_and_authorize_resource :project
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::CommitSubscribesController < Projects::BaseController
|
class Projects::CommitSubscribesController < Projects::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
load_and_authorize_resource :project
|
load_and_authorize_resource :project
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::Git::BaseController < Projects::BaseController
|
class Projects::Git::BaseController < Projects::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:show, :index, :blame, :raw, :archive, :diff, :tags, :branches] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:show, :index, :blame, :raw, :archive, :diff, :tags, :branches] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::Git::BlobsController < Projects::Git::BaseController
|
class Projects::Git::BlobsController < Projects::Git::BaseController
|
||||||
before_filter :set_blob
|
before_filter :set_blob
|
||||||
before_filter lambda {authorize! :write, @project}, :only => [:edit, :update]
|
before_filter lambda {authorize! :write, @project}, :only => [:edit, :update]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::Git::CommitsController < Projects::Git::BaseController
|
class Projects::Git::CommitsController < Projects::Git::BaseController
|
||||||
def index
|
def index
|
||||||
if @path.present?
|
if @path.present?
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::Git::TreesController < Projects::Git::BaseController
|
class Projects::Git::TreesController < Projects::Git::BaseController
|
||||||
before_filter lambda{redirect_to @project if params[:treeish] == @project.default_branch and params[:path].blank?}, :only => :show
|
before_filter lambda{redirect_to @project if params[:treeish] == @project.default_branch and params[:path].blank?}, :only => :show
|
||||||
skip_before_filter :set_branch_and_tree, :set_treeish_and_path, :only => :archive
|
skip_before_filter :set_branch_and_tree, :set_treeish_and_path, :only => :archive
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::IssuesController < Projects::BaseController
|
class Projects::IssuesController < Projects::BaseController
|
||||||
NON_RESTFUL_ACTION = [:create_label, :update_label, :destroy_label]
|
NON_RESTFUL_ACTION = [:create_label, :update_label, :destroy_label]
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::ProjectsController < Projects::BaseController
|
class Projects::ProjectsController < Projects::BaseController
|
||||||
include ProjectsHelper
|
include ProjectsHelper
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::PullRequestsController < Projects::BaseController
|
class Projects::PullRequestsController < Projects::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Projects::SubscribesController < Projects::BaseController
|
class Projects::SubscribesController < Projects::BaseController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
#require 'lib/gollum'
|
#require 'lib/gollum'
|
||||||
require 'cgi'
|
require 'cgi'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class SearchController < ApplicationController
|
class SearchController < ApplicationController
|
||||||
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
|
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
|
||||||
# load_and_authorize_resource
|
# load_and_authorize_resource
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Users::BaseController < ApplicationController
|
class Users::BaseController < ApplicationController
|
||||||
before_filter :authenticate_user!
|
before_filter :authenticate_user!
|
||||||
before_filter :find_user
|
before_filter :find_user
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||||
def open_id
|
def open_id
|
||||||
# raise env['omniauth.auth'].inspect
|
# raise env['omniauth.auth'].inspect
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Users::ProfileController < Users::BaseController
|
class Users::ProfileController < Users::BaseController
|
||||||
skip_before_filter :authenticate_user!, :only => :show if APP_CONFIG['anonymous_access']
|
skip_before_filter :authenticate_user!, :only => :show if APP_CONFIG['anonymous_access']
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Users::RegisterRequestsController < ApplicationController
|
class Users::RegisterRequestsController < ApplicationController
|
||||||
before_filter :user_choose_locale
|
before_filter :user_choose_locale
|
||||||
layout 'invite'
|
layout 'invite'
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Users::SettingsController < Users::BaseController
|
class Users::SettingsController < Users::BaseController
|
||||||
include AvatarHelper
|
include AvatarHelper
|
||||||
before_filter :set_current_user
|
before_filter :set_current_user
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Users::SshKeysController < Users::BaseController
|
class Users::SshKeysController < Users::BaseController
|
||||||
skip_before_filter :find_user
|
skip_before_filter :find_user
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Users::UsersController < Users::BaseController
|
class Users::UsersController < Users::BaseController
|
||||||
skip_before_filter :authenticate_user!
|
skip_before_filter :authenticate_user!
|
||||||
before_filter :find_user_by_key, :only => [:allowed, :discover]
|
before_filter :find_user_by_key, :only => [:allowed, :discover]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module ActivityFeedsHelper
|
module ActivityFeedsHelper
|
||||||
def render_activity_feed(activity_feed)
|
def render_activity_feed(activity_feed)
|
||||||
render activity_feed.partial, activity_feed.data.merge(:activity_feed => activity_feed)
|
render activity_feed.partial, activity_feed.data.merge(:activity_feed => activity_feed)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module AdvisoriesHelper
|
module AdvisoriesHelper
|
||||||
def advisories_select_options(advisories, opts = {:class => 'popoverable'})
|
def advisories_select_options(advisories, opts = {:class => 'popoverable'})
|
||||||
def_values = [[t("layout.advisories.no_"), 'no'], [t("layout.advisories.new"), 'new'], [t("layout.advisories.existing"), 'existing', {:class => 'advisory_id'}]]
|
def_values = [[t("layout.advisories.no_"), 'no'], [t("layout.advisories.new"), 'new'], [t("layout.advisories.existing"), 'existing', {:class => 'advisory_id'}]]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
def layout_class
|
def layout_class
|
||||||
case
|
case
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module BuildListsHelper
|
module BuildListsHelper
|
||||||
def build_list_status_color(status)
|
def build_list_status_color(status)
|
||||||
case status
|
case status
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module CommentsHelper
|
module CommentsHelper
|
||||||
def project_commentable_comment_path(project, commentable, comment)
|
def project_commentable_comment_path(project, commentable, comment)
|
||||||
if Comment.issue_comment?(commentable.class)
|
if Comment.issue_comment?(commentable.class)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module CommitHelper
|
module CommitHelper
|
||||||
|
|
||||||
def render_commit_stats(stats)
|
def render_commit_stats(stats)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module DeviseHelper
|
module DeviseHelper
|
||||||
def getDeviseErrors(*name)
|
def getDeviseErrors(*name)
|
||||||
res = Array.new(name.count)
|
res = Array.new(name.count)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module DiffHelper
|
module DiffHelper
|
||||||
def render_diff_stats(stats)
|
def render_diff_stats(stats)
|
||||||
path = @pull.try(:id) ? polymorphic_path([@project, @pull]) : ''
|
path = @pull.try(:id) ? polymorphic_path([@project, @pull]) : ''
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module GitHelper
|
module GitHelper
|
||||||
|
|
||||||
def render_path
|
def render_path
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module IssuesHelper
|
module IssuesHelper
|
||||||
def tracker_search_field(name, txt)
|
def tracker_search_field(name, txt)
|
||||||
str = "<input name='#{name}' id='#{name}' type='text' value='#{txt}'"
|
str = "<input name='#{name}' id='#{name}' type='text' value='#{txt}'"
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module MassBuildHelper
|
module MassBuildHelper
|
||||||
def link_to_list platform, mass_build, which
|
def link_to_list platform, mass_build, which
|
||||||
link_to t("layout.mass_builds.#{which}"),
|
link_to t("layout.mass_builds.#{which}"),
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module PlatformsHelper
|
module PlatformsHelper
|
||||||
def repository_name_postfix(platform)
|
def repository_name_postfix(platform)
|
||||||
return "" unless platform
|
return "" unless platform
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module ProjectsHelper
|
module ProjectsHelper
|
||||||
def options_for_filters(all_projects, groups, owners)
|
def options_for_filters(all_projects, groups, owners)
|
||||||
projects_count_by_groups = all_projects.where(:owner_id => groups, :owner_type => 'Group').
|
projects_count_by_groups = all_projects.where(:owner_id => groups, :owner_type => 'Group').
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module PullRequestHelper
|
module PullRequestHelper
|
||||||
def merge_activity comments, commits
|
def merge_activity comments, commits
|
||||||
common_comments, pull_comments = comments.partition {|c| c.data.blank?}
|
common_comments, pull_comments = comments.partition {|c| c.data.blank?}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module UsersHelper
|
module UsersHelper
|
||||||
|
|
||||||
def avatar_url_by_email(email, size = :small)
|
def avatar_url_by_email(email, size = :small)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
module WikiHelper
|
module WikiHelper
|
||||||
|
|
||||||
def revert_path(project, first, second, name)
|
def revert_path(project, first, second, name)
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
|
|
||||||
class UserMailer < ActionMailer::Base
|
class UserMailer < ActionMailer::Base
|
||||||
default :from => "\"#{APP_CONFIG['project_name']}\" <#{APP_CONFIG['do-not-reply-email']}>"
|
default :from => "\"#{APP_CONFIG['project_name']}\" <#{APP_CONFIG['do-not-reply-email']}>"
|
||||||
default_url_options.merge!(:protocol => 'https') if APP_CONFIG['mailer_https_url']
|
default_url_options.merge!(:protocol => 'https') if APP_CONFIG['mailer_https_url']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
# If rules goes one by one CanCan joins them by 'OR' sql operator
|
# If rules goes one by one CanCan joins them by 'OR' sql operator
|
||||||
# If rule has multiple conditions CanCan joins them by 'AND' sql operator
|
# If rule has multiple conditions CanCan joins them by 'AND' sql operator
|
||||||
# WARNING:
|
# WARNING:
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ActivityFeed < ActiveRecord::Base
|
class ActivityFeed < ActiveRecord::Base
|
||||||
|
|
||||||
CODE = ['git_delete_branch_notification', 'git_new_push_notification', 'new_comment_commit_notification']
|
CODE = ['git_delete_branch_notification', 'git_new_push_notification', 'new_comment_commit_notification']
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ActivityFeedObserver < ActiveRecord::Observer
|
class ActivityFeedObserver < ActiveRecord::Observer
|
||||||
observe :issue, :comment, :user, :build_list
|
observe :issue, :comment, :user, :build_list
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Arch < ActiveRecord::Base
|
class Arch < ActiveRecord::Base
|
||||||
has_many :build_lists, :dependent => :destroy
|
has_many :build_lists, :dependent => :destroy
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Authentication < ActiveRecord::Base
|
class Authentication < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Avatar < ActiveRecord::Base
|
class Avatar < ActiveRecord::Base
|
||||||
self.abstract_class = true
|
self.abstract_class = true
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class BuildList < ActiveRecord::Base
|
class BuildList < ActiveRecord::Base
|
||||||
include Modules::Models::CommitAndVersion
|
include Modules::Models::CommitAndVersion
|
||||||
include Modules::Models::FileStoreClean
|
include Modules::Models::FileStoreClean
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class BuildList::Filter
|
class BuildList::Filter
|
||||||
PER_PAGE = [25, 50, 100]
|
PER_PAGE = [25, 50, 100]
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class BuildList::Item < ActiveRecord::Base
|
class BuildList::Item < ActiveRecord::Base
|
||||||
|
|
||||||
belongs_to :build_list, :touch => true
|
belongs_to :build_list, :touch => true
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Collaborator
|
class Collaborator
|
||||||
include ActiveModel::Conversion
|
include ActiveModel::Conversion
|
||||||
include ActiveModel::Validations
|
include ActiveModel::Validations
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Comment < ActiveRecord::Base
|
class Comment < ActiveRecord::Base
|
||||||
belongs_to :commentable, :polymorphic => true
|
belongs_to :commentable, :polymorphic => true
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class EventLog < ActiveRecord::Base
|
class EventLog < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
belongs_to :eventable, :polymorphic => true
|
belongs_to :eventable, :polymorphic => true
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class EventLogObserver < ActiveRecord::Observer
|
class EventLogObserver < ActiveRecord::Observer
|
||||||
observe :user, :private_user, :platform, :repository, :project, :product, :build_list, :product_build_list
|
observe :user, :private_user, :platform, :repository, :project, :product, :build_list, :product_build_list
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class GitHook
|
class GitHook
|
||||||
ZERO = '0000000000000000000000000000000000000000'
|
ZERO = '0000000000000000000000000000000000000000'
|
||||||
@queue = :hook
|
@queue = :hook
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Group < Avatar
|
class Group < Avatar
|
||||||
belongs_to :owner, :class_name => 'User'
|
belongs_to :owner, :class_name => 'User'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Issue < ActiveRecord::Base
|
class Issue < ActiveRecord::Base
|
||||||
STATUSES = ['open', 'closed']
|
STATUSES = ['open', 'closed']
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class KeyPair < ActiveRecord::Base
|
class KeyPair < ActiveRecord::Base
|
||||||
belongs_to :repository
|
belongs_to :repository
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Label < ActiveRecord::Base
|
class Label < ActiveRecord::Base
|
||||||
has_many :labelings, :dependent => :destroy
|
has_many :labelings, :dependent => :destroy
|
||||||
has_many :issues, :through => :labelings
|
has_many :issues, :through => :labelings
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Labeling < ActiveRecord::Base
|
class Labeling < ActiveRecord::Base
|
||||||
belongs_to :issue
|
belongs_to :issue
|
||||||
belongs_to :label
|
belongs_to :label
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Platform < ActiveRecord::Base
|
class Platform < ActiveRecord::Base
|
||||||
VISIBILITIES = ['open', 'hidden']
|
VISIBILITIES = ['open', 'hidden']
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class PrivateUser < ActiveRecord::Base
|
class PrivateUser < ActiveRecord::Base
|
||||||
require 'digest/sha2'
|
require 'digest/sha2'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Product < ActiveRecord::Base
|
class Product < ActiveRecord::Base
|
||||||
include Modules::Models::TimeLiving
|
include Modules::Models::TimeLiving
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ProductBuildList < ActiveRecord::Base
|
class ProductBuildList < ActiveRecord::Base
|
||||||
include Modules::Models::CommitAndVersion
|
include Modules::Models::CommitAndVersion
|
||||||
include Modules::Models::TimeLiving
|
include Modules::Models::TimeLiving
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class Project < ActiveRecord::Base
|
class Project < ActiveRecord::Base
|
||||||
VISIBILITIES = ['open', 'hidden']
|
VISIBILITIES = ['open', 'hidden']
|
||||||
MAX_OWN_PROJECTS = 32000
|
MAX_OWN_PROJECTS = 32000
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ProjectImport < ActiveRecord::Base
|
class ProjectImport < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :platform
|
belongs_to :platform
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ProjectTag < ActiveRecord::Base
|
class ProjectTag < ActiveRecord::Base
|
||||||
include Modules::Models::FileStoreClean
|
include Modules::Models::FileStoreClean
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class ProjectToRepository < ActiveRecord::Base
|
class ProjectToRepository < ActiveRecord::Base
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :repository
|
belongs_to :repository
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# -*- encoding : utf-8 -*-
|
|
||||||
class RegisterRequest < ActiveRecord::Base
|
class RegisterRequest < ActiveRecord::Base
|
||||||
|
|
||||||
default_scope order('created_at ASC')
|
default_scope order('created_at ASC')
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue