Browse Source

Merge branch 'master' of github.com:gogits/gogs

for-closed-social
Lunny Xiao 10 years ago
parent
commit
ace20602b5
7 changed files with 13 additions and 5 deletions
  1. +4
    -0
      public/css/markdown.css
  2. BIN
     
  3. BIN
     
  4. +1
    -1
      public/js/app.js
  5. +1
    -1
      templates/repo/nav.tmpl
  6. +3
    -2
      templates/status/404.tmpl
  7. +4
    -1
      templates/status/500.tmpl

+ 4
- 0
public/css/markdown.css View File

@ -175,6 +175,10 @@
margin-bottom: 0;
}
.markdown img {
max-width: 100%;
}
.markdown .btn {
color: #fff;
}

BIN
View File


BIN
View File


+ 1
- 1
public/js/app.js View File

@ -98,7 +98,7 @@ var Gogits = {
};
// fix dropdown inside click
Gogits.initDropDown = function(){
$('.dropdown-menu').on('click','a,button,input,select',function(e){
$('.dropdown-menu.no-propagation').on('click',function(e){
e.stopPropagation();
});
};

+ 1
- 1
templates/repo/nav.tmpl View File

@ -18,7 +18,7 @@
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<div class="dropdown-menu clone-group-btn dropdown-menu-right">
<div class="dropdown-menu clone-group-btn dropdown-menu-right no-propagation">
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-default" data-link="{{.CloneLink.SSH}}" type="button">SSH</button>

+ 3
- 2
templates/status/404.tmpl View File

@ -1,7 +1,8 @@
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="gogs-body" class="container">
<h4>This page is not found !</h4>
<div id="gogs-body" class="container text-center">
<p style="margin-top: 80px"><img src="/img/404.png" alt="404"/></p>
<hr/>
<p>Application Version: {{AppVer}}</p>
</div>
{{template "base/footer" .}}

+ 4
- 1
templates/status/500.tmpl View File

@ -1,7 +1,10 @@
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="gogs-body" class="container">
<div id="gogs-body" class="container text-center">
<p style="margin-top: 80px"><img src="/img/500.png" alt="404"/></p>
<hr/>
<p>An error is occurred : {{.ErrorMsg}}</p>
<hr/>
<p>Application Version: {{AppVer}}</p>
</div>
{{template "base/footer" .}}

Loading…
Cancel
Save