gitlab_reviewable 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8dcb9fa73b8765229be444262b2604e43e4ba83
4
- data.tar.gz: 0dcc578593844307f6e7416ce04419f3770ab33b
3
+ metadata.gz: c4c097cb78accd58c52f9cb149ff9d9901d58a72
4
+ data.tar.gz: 4230d90a33faa853d62e00e0d31ed120e4fbb922
5
5
  SHA512:
6
- metadata.gz: 16c4e9ecccf264505a8befb3985f7957b88c3eb8d7f523e56b89676530c2454b16e5fa790e14c129f1152cce2fd5ae533c85fed2bc7980fcc9a96315f29b78e3
7
- data.tar.gz: f2dd6cfe5bf6c9a8d2e000e96e9bdacbeb31b5f578cc69eff60811bea726c5f63f3241aaff4a854ca35d97f75eb89fb21cce0922fc021c520d97f0106c659b28
6
+ metadata.gz: 8048c167127987d6765dae7348e13e5a888515316d8c99b2f3197b05e14fd8b131313e2973ee4b442f4e8f2826682879d9c6abdc63536e6291f175aa80b61098
7
+ data.tar.gz: fc8e50cba6e8baa63190b634d8340611b9ef534ed7f68ab2e58c26dad77214bf4c844b04320603fdace2ba29e31fc111227e5302eb1709831f5583c03f92baba
@@ -1,34 +1,46 @@
1
1
  !!! 5
2
2
  %html{ lang: "en"}
3
3
  = render "layouts/head"
4
- %body{class: "#{user_application_theme}", 'data-page' => body_data_page}
5
- -# Ideally this would be inside the head, but turbolinks only evaluates page-specific JS in the body.
6
- - project = @target_project || @project
7
- - if @project_wiki
8
- - markdown_preview_path = namespace_project_wikis_markdown_preview_path(project.namespace, project)
9
- - else
10
- - markdown_preview_path = markdown_preview_namespace_project_path(project.namespace, project)
11
- - if current_user
12
- :javascript
13
- window.project_uploads_path = "#{namespace_project_uploads_path project.namespace,project}";
14
- window.markdown_preview_path = "#{markdown_preview_path}";
4
+ - if current_user
5
+ %body{class: "#{user_application_theme}", 'data-page' => body_data_page}
6
+ -# Ideally this would be inside the head, but turbolinks only evaluates page-specific JS in the body.
7
+ - project = @target_project || @project
8
+ - if @project_wiki
9
+ - markdown_preview_path = namespace_project_wikis_markdown_preview_path(project.namespace, project)
10
+ - else
11
+ - markdown_preview_path = markdown_preview_namespace_project_path(project.namespace, project)
12
+ - if current_user
13
+ :javascript
14
+ window.project_uploads_path = "#{namespace_project_uploads_path project.namespace,project}";
15
+ window.markdown_preview_path = "#{markdown_preview_path}";
15
16
 
16
- .page-with-sidebar
17
- - if defined?(nav) && nav
18
- .layout-nav
19
- .container-fluid
20
- = render "layouts/nav/#{nav}"
21
- .content-wrapper{ class: "#{layout_nav_class} #{layout_dropdown_class}" }
22
- = render "layouts/broadcast"
23
- = render "layouts/flash"
24
- = yield :flash_message
25
- %div{ class: (container_class unless @no_container) }
26
- .content
27
- .clearfix
28
- = yield
17
+ .page-with-sidebar
18
+ - if defined?(nav) && nav
19
+ .layout-nav
20
+ .container-fluid
21
+ = render "layouts/nav/#{nav}"
22
+ .content-wrapper{ class: "#{layout_nav_class} #{layout_dropdown_class}" }
23
+ = render "layouts/broadcast"
24
+ = render "layouts/flash"
25
+ = yield :flash_message
26
+ %div{ class: (container_class unless @no_container) }
27
+ .content
28
+ .clearfix
29
+ = yield
29
30
 
30
- = render "layouts/init_auto_complete" if current_user
31
+ = render "layouts/init_auto_complete" if current_user
31
32
 
32
- - page_title @project.name_with_namespace
33
- - page_description @project.description unless page_description
34
- - header_title project_title(@project) unless header_title
33
+ - page_title @project.name_with_namespace
34
+ - page_description @project.description unless page_description
35
+ - header_title project_title(@project) unless header_title
36
+ - else
37
+ .login-tips
38
+ 老板, 您还没有在 Gitlab 上
39
+ = link_to '登录', new_user_session_path, target: "_blank"
40
+ 呢~
41
+ :css
42
+ .login-tips {
43
+ width: 300px;
44
+ margin: 0 auto;
45
+ margin-top: 20px;
46
+ }
@@ -1,3 +1,3 @@
1
1
  module GitlabReviewable
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_reviewable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - lenghan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails