Added gitter chat

This commit is contained in:
Hillel Coren 2015-10-29 23:56:45 +02:00
parent b040aad021
commit fa105210bb
6 changed files with 24 additions and 14 deletions

View File

@ -413,6 +413,7 @@ if (!defined('CONTACT_EMAIL')) {
define('PDFMAKE_DOCS', 'http://pdfmake.org/playground.html'); define('PDFMAKE_DOCS', 'http://pdfmake.org/playground.html');
define('PHANTOMJS_CLOUD', 'http://api.phantomjscloud.com/single/browser/v1/'); define('PHANTOMJS_CLOUD', 'http://api.phantomjscloud.com/single/browser/v1/');
define('PHP_DATE_FORMATS', 'http://php.net/manual/en/function.date.php'); define('PHP_DATE_FORMATS', 'http://php.net/manual/en/function.date.php');
define('GITTER_ROOM', 'hillelcoren/invoice-ninja');
define('REFERRAL_PROGRAM_URL', false); define('REFERRAL_PROGRAM_URL', false);
define('COUNT_FREE_DESIGNS', 4); define('COUNT_FREE_DESIGNS', 4);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1027,3 +1027,7 @@ ul.user-accounts a:hover div.remove {
content: ""; content: "";
background-color: #e37329; background-color: #e37329;
} }
.gitter-open-chat-button {
background-color: #0b4d78 !important;
}

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,6 @@
@extends('header') @extends('header')
@section('content') @section('content')
<div class="row"> <div class="row">
@ -250,11 +251,7 @@
</div> </div>
@endif @endif
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<div class="row">
<div class="col-md-6">
</div>
</div>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
@ -262,7 +259,9 @@
window.location = '{{ URL::to('invoices/create') }}'; window.location = '{{ URL::to('invoices/create') }}';
}); });
}); });
((window.gitter = {}).chat = {}).options = {
room: '{{ GITTER_ROOM }}',
};
</script> </script>
@stop @stop