File: error.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (17 lines) | stat: -rw-r--r-- 666 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- page_title _("Fork project")
- if @fork_response.error?
  = render Pajamas::AlertComponent.new(title: _('Fork Error!'),
    variant: :danger,
    alert_options: { class: 'gl-mt-5' },
    dismissible: false) do |c|
    - c.with_body do
      %p
        = _("You tried to fork %{link_to_the_project} but it failed for the following reason:").html_safe % { link_to_the_project: link_to_project(@project) }

      - @fork_response.errors.each do |error|
        %p
          –
          = error

    - c.with_actions do
      = link_button_to _('Try to fork again'), new_project_fork_path(@project), title: _("Fork"), class: 'gl-alert-action', variant: :confirm