From db03dc318e41f93887f668969dd207268a3168dc Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Tue, 21 Apr 2015 18:56:10 +0300 Subject: refactoring network related code --- app/views/projects/_gitlab.html.haml | 2 +- app/views/projects/index.html.haml | 2 +- app/views/user_sessions/show.html.haml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views') diff --git a/app/views/projects/_gitlab.html.haml b/app/views/projects/_gitlab.html.haml index 3dd759f..11f5866 100644 --- a/app/views/projects/_gitlab.html.haml +++ b/app/views/projects/_gitlab.html.haml @@ -1,6 +1,6 @@ .clearfix.light .pull-left.fetch-status - Fetched from GitLab (#{link_to current_user.url, current_user.url, no_turbolink}) + Fetched from GitLab (#{link_to GitlabCi.config.gitlab_server.url, GitlabCi.config.gitlab_server.url, no_turbolink}) - if params[:search].present? by keyword: "#{params[:search]}", #{time_ago_in_words(current_user.sync_at)} ago. diff --git a/app/views/projects/index.html.haml b/app/views/projects/index.html.haml index 824ba80..4ec8f68 100644 --- a/app/views/projects/index.html.haml +++ b/app/views/projects/index.html.haml @@ -8,7 +8,7 @@ .projects %p.fetch-status.light %i.icon-refresh.icon-spin - Please wait while we fetch from GitLab (#{current_user.url}) + Please wait while we fetch from GitLab (#{GitlabCi.config.gitlab_server.url}) :javascript $.get("#{gitlab_projects_path}") - else diff --git a/app/views/user_sessions/show.html.haml b/app/views/user_sessions/show.html.haml index 4432ed0..12aea2a 100644 --- a/app/views/user_sessions/show.html.haml +++ b/app/views/user_sessions/show.html.haml @@ -12,4 +12,4 @@ %p %span.light GitLab profile: - %strong= link_to @user.username, @user.url + '/u/' + @user.username, target: "_blank" + %strong= link_to @user.username, GitlabCi.config.gitlab_server.url + '/u/' + @user.username, target: "_blank" -- cgit v1.2.1