Commit 31f1cebe4bc545fc00947475211ab52d84b356ce
1 parent
607d8b79
Exists in
master
and in
4 other branches
Wiki style: move styles to right place
Showing
3 changed files
with
14 additions
and
16 deletions
Show diff stats
app/assets/stylesheets/gitlab_bootstrap/files.scss
| @@ -37,20 +37,6 @@ | @@ -37,20 +37,6 @@ | ||
| 37 | background:#fff; | 37 | background:#fff; |
| 38 | font-size: 11px; | 38 | font-size: 11px; |
| 39 | 39 | ||
| 40 | - &.wiki { | ||
| 41 | - font-size: 13px; | ||
| 42 | - code { | ||
| 43 | - padding:0 4px; | ||
| 44 | - } | ||
| 45 | - padding:20px; | ||
| 46 | - h1, h2 { | ||
| 47 | - line-height: 46px; | ||
| 48 | - } | ||
| 49 | - h3, h4 { | ||
| 50 | - line-height: 40px; | ||
| 51 | - } | ||
| 52 | - } | ||
| 53 | - | ||
| 54 | &.image_file { | 40 | &.image_file { |
| 55 | background:#eee; | 41 | background:#eee; |
| 56 | text-align:center; | 42 | text-align:center; |
app/assets/stylesheets/sections/wiki.scss
lib/gitlab/markdown.rb
| @@ -176,6 +176,8 @@ module Gitlab | @@ -176,6 +176,8 @@ module Gitlab | ||
| 176 | if commit = @project.commit(identifier) | 176 | if commit = @project.commit(identifier) |
| 177 | link_to(identifier, project_commit_path(@project, commit), html_options.merge(title: CommitDecorator.new(commit).link_title, class: "gfm gfm-commit #{html_options[:class]}")) | 177 | link_to(identifier, project_commit_path(@project, commit), html_options.merge(title: CommitDecorator.new(commit).link_title, class: "gfm gfm-commit #{html_options[:class]}")) |
| 178 | end | 178 | end |
| 179 | + rescue Grit::NoSuchPathError | ||
| 180 | + nil | ||
| 179 | end | 181 | end |
| 180 | end | 182 | end |
| 181 | end | 183 | end |