Merge branch 'remove-log' of github.com:travis-ci/travis-web into remove-log
This commit is contained in:
commit
8c74c10654
|
@ -98,7 +98,8 @@ require 'config/emoij'
|
||||||
_githubCommitReferenceLink: (reference, current, matched) ->
|
_githubCommitReferenceLink: (reference, current, matched) ->
|
||||||
owner = matched.owner || current.owner
|
owner = matched.owner || current.owner
|
||||||
repo = matched.repo || current.repo
|
repo = matched.repo || current.repo
|
||||||
"<a href=\"https://github.com/#{owner}/#{repo}/commit/#{matched.sha}\">#{reference}</a>"
|
url = "#{Travis.Urls.githubCommit("#{owner}/#{repo}", matched.sha)}"
|
||||||
|
"<a href=\"#{url}\">#{reference}</a>"
|
||||||
|
|
||||||
_normalizeDateString: (string) ->
|
_normalizeDateString: (string) ->
|
||||||
if window.JHW
|
if window.JHW
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
<p class="tip">
|
<p class="tip">
|
||||||
{{#if showPrivateReposHint}}
|
{{#if config.pro}}
|
||||||
We're only showing <strong>your public repositories</strong> below.
|
|
||||||
You can find your <strong>private projects on <a href="https://travis-ci.com?utm_source=hooks">travis-ci.com</a></strong>.
|
|
||||||
{{/if}}
|
|
||||||
{{#if showPublicReposHint}}
|
|
||||||
We're only showing <strong>your private repositories</strong> below.
|
We're only showing <strong>your private repositories</strong> below.
|
||||||
You can find your <strong>public projects on <a href="https://travis-ci.org?utm_source=hooks">travis-ci.org</a></strong>.
|
You can find your <strong>public projects on <a href="https://travis-ci.org?utm_source=hooks">travis-ci.org</a></strong>.
|
||||||
|
{{else}}
|
||||||
|
We're only showing <strong>your public repositories</strong> below.
|
||||||
|
You can find your <strong>private projects on <a href="https://travis-ci.com?utm_source=hooks">travis-ci.com</a></strong>.
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -19,12 +19,12 @@ Travis.reopen
|
||||||
).property('controller.repo.slug')
|
).property('controller.repo.slug')
|
||||||
|
|
||||||
actions:
|
actions:
|
||||||
statusImages: ->
|
statusImages: () ->
|
||||||
@popupCloseAll()
|
@popupCloseAll()
|
||||||
view = Travis.StatusImagesView.create(toolsView: this)
|
view = Travis.StatusImagesView.create(toolsView: this)
|
||||||
Travis.View.currentPopupView = view
|
Travis.View.currentPopupView = view
|
||||||
view.appendTo($('body'))
|
view.appendTo($('body'))
|
||||||
event.stopPropagation()
|
return false
|
||||||
|
|
||||||
ReposEmptyView: Travis.View.extend
|
ReposEmptyView: Travis.View.extend
|
||||||
template: (->
|
template: (->
|
||||||
|
@ -116,14 +116,14 @@ Travis.reopen
|
||||||
menu: ->
|
menu: ->
|
||||||
@popupCloseAll()
|
@popupCloseAll()
|
||||||
$('#tools .menu').toggleClass('display')
|
$('#tools .menu').toggleClass('display')
|
||||||
event.stopPropagation()
|
return false
|
||||||
|
|
||||||
regenerateKeyPopup: ->
|
regenerateKeyPopup: ->
|
||||||
if @get('canRegenerateKey')
|
if @get('canRegenerateKey')
|
||||||
@set('active', true)
|
@set('active', true)
|
||||||
@closeMenu()
|
@closeMenu()
|
||||||
@popup(event)
|
@popup('regenerate-key-popup')
|
||||||
event.stopPropagation()
|
return false
|
||||||
|
|
||||||
regenerateKey: ->
|
regenerateKey: ->
|
||||||
@popupCloseAll()
|
@popupCloseAll()
|
||||||
|
@ -227,7 +227,13 @@ Travis.reopen
|
||||||
codeClimatePopup: ->
|
codeClimatePopup: ->
|
||||||
@popupCloseAll()
|
@popupCloseAll()
|
||||||
@popup('code-climate')
|
@popup('code-climate')
|
||||||
event.stopPropagation() if event?
|
return false
|
||||||
|
|
||||||
|
removeLogPopup: ->
|
||||||
|
if @get('canRemoveLog')
|
||||||
|
@set('active', true)
|
||||||
|
@popup('remove-log-popup')
|
||||||
|
return false
|
||||||
|
|
||||||
removeLogPopup: ->
|
removeLogPopup: ->
|
||||||
if @get('canRemoveLog')
|
if @get('canRemoveLog')
|
||||||
|
|
|
@ -83,6 +83,8 @@ class Travis::Web::App
|
||||||
def response_for(file, options = {})
|
def response_for(file, options = {})
|
||||||
content = File.read(file)
|
content = File.read(file)
|
||||||
set_config(content, options) if config_needed?(file)
|
set_config(content, options) if config_needed?(file)
|
||||||
|
set_title(content) if index?(file)
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
'Content-Length' => content.bytesize.to_s,
|
'Content-Length' => content.bytesize.to_s,
|
||||||
'Cache-Control' => cache_control(file),
|
'Cache-Control' => cache_control(file),
|
||||||
|
@ -134,6 +136,11 @@ class Travis::Web::App
|
||||||
Rack::Mime.mime_type File.extname(file)
|
Rack::Mime.mime_type File.extname(file)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def set_title(content)
|
||||||
|
default_title = "Travis CI - Free Hosted Continuous Integration Platform for the Open Source Community"
|
||||||
|
content.gsub!(/\{\{title\}\}/, ENV['SITE_TITLE'] || default_title)
|
||||||
|
end
|
||||||
|
|
||||||
def set_config(string, opts = {})
|
def set_config(string, opts = {})
|
||||||
string.gsub! %r(<meta (rel|name)="travis\.([^"]*)" (href|value)="([^"]*)"[^>]*>) do
|
string.gsub! %r(<meta (rel|name)="travis\.([^"]*)" (href|value)="([^"]*)"[^>]*>) do
|
||||||
%(<meta #{$1}="travis.#{$2}" #{$3}="#{options[$2.to_sym] || $4}">)
|
%(<meta #{$1}="travis.#{$2}" #{$3}="#{options[$2.to_sym] || $4}">)
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<meta name="travis.charm_key" value="gy5gx7dy6dh86hxzkz1wmtvupwvievu">
|
<meta name="travis.charm_key" value="gy5gx7dy6dh86hxzkz1wmtvupwvievu">
|
||||||
<meta name="travis.pro" value="false">
|
<meta name="travis.pro" value="false">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Travis CI - Free Hosted Continuous Integration Platform for the Open Source Community</title>
|
<title>{{title}}</title>
|
||||||
<link rel="dns-prefetch" href="//api.travis-ci.org">
|
<link rel="dns-prefetch" href="//api.travis-ci.org">
|
||||||
<link rel="dns-prefetch" href="//ws.pusherapp.com">
|
<link rel="dns-prefetch" href="//ws.pusherapp.com">
|
||||||
<link rel="dns-prefetch" href="//api.github.com">
|
<link rel="dns-prefetch" href="//api.github.com">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user