app/helpers/commits_helper.rb
# Returns a link to the commit author. If the author has a matching user and
# is a member of the current @project it will link to the team member page.
# Otherwise it will link to the author email as specified in the commit.
#
# options:
#  avatar: true will prepend the avatar image
#  size:   size of the avatar image in px
Returns a link to the commit author. If the author has a matching user and
is a member of the current @project it will link to the team member page.
Otherwise it will link to the author email as specified in the commit.

true will prepend the avatar image
size:   size of the avatar image in px
Returns a link to the commit author . If the author has a matching user and is a member of the current @project it will link to the team member page . Otherwise it will link to the author email as specified in the commit . true will prepend the avatar image size : size of the avatar image in px
def link_to_browse_code(project, commit)
    if current_controller?(:projects, :commits)
      if @repo.blob_at(commit.id, @path)
        return link_to(
          "Browse File »",
          namespace_project_blob_path(project.namespace, project,
                                      tree_join(commit.id, @path)),
          class: "pull-right"
        )
      elsif @path.present?
        return link_to(
          "Browse Directory »",
          namespace_project_tree_path(project.namespace, project,
                                      tree_join(commit.id, @path)),
          class: "pull-right"
        )
      end
    end
    link_to(
      "Browse Files",
      namespace_project_tree_path(project.namespace, project, commit),
      class: "pull-right"
    )
  end
def link_to_browse_code ( project , commit ) if current_controller? ( :projects , :commits ) if @repo . blob_at ( commit . id , @path ) return link_to ( "Browse File »", namespace_project_blob_path ( project . namespace , project , tree_join ( commit . id , @path ) ) , class : "pull-right" ) elsif @path . present? return link_to ( "Browse Directory »", namespace_project_tree_path ( project . namespace , project , tree_join ( commit . id , @path ) ) , class : "pull-right" ) end end link_to ( "Browse Files" , namespace_project_tree_path ( project . namespace , project , commit ) , class : "pull-right" ) end
Returns a link to the commit author.
Returns a link to the commit author .
project
commit