Class: Projects::NetworkController

Inherits:
ApplicationController show all
Includes:
ApplicationHelper, ExtractsPath
Defined in:
app/controllers/projects/network_controller.rb

Instance Method Summary collapse

Methods included from ApplicationHelper

#asciidoc?, #avatar_icon, #body_data_page, #current_action?, #current_controller?, #default_avatar, #edited_time_ago_with_tooltip, #extra_config, #gitlab_config, #gitlab_markdown?, #gravatar_icon, #grouped_options_refs, #hexdigest, #last_commit, #markup?, #outdated_browser?, #page_filter_path, #path_to_key, #plain?, #project_icon, #project_identicon, #promo_host, #promo_url, #render_markup, #show_last_push_widget?, #simple_sanitize, #state_filters_text_for, #time_ago_with_tooltip, #truncate_first_line

Methods included from ExtractsPath

#assign_ref_vars, #extract_ref, #tree

Methods inherited from ApplicationController

#redirect_back_or_default

Methods included from PageLayoutHelper

#blank_container, #container_class, #fluid_layout, #header_title, #nav, #page_card_attributes, #page_card_meta_tags, #page_description, #page_image, #page_title, #sidebar

Methods included from GitlabRoutingHelper

#activity_project_path, #edit_project_path, #edit_project_url, #issue_path, #issue_url, #merge_request_path, #merge_request_url, #milestone_path, #project_builds_path, #project_commits_path, #project_files_path, #project_path, #project_pipelines_path, #project_snippet_url, #project_url, #runner_path, #runners_path, #toggle_subscription_path

Methods included from Gitlab::GonHelper

#add_gon_variables

Methods included from Gitlab::CurrentSettings

#current_application_settings, #fake_application_settings

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Projects::ApplicationController

Instance Method Details

#showObject


9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/controllers/projects/network_controller.rb', line 9

def show

  @url = namespace_project_network_path(@project.namespace, @project, @ref, @options.merge(format: :json))
  @commit_url = namespace_project_commit_path(@project.namespace, @project, 'ae45ca32').gsub("ae45ca32", "%s")

  respond_to do |format|
    format.html

    format.json do
      @graph = Network::Graph.new(project, @ref, @commit, @options[:filter_ref])
    end
  end
end