-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4327 from RestyaPlatform/v0.7
Restyaboard Latest version v1.7 file changes added
- Loading branch information
Showing
241 changed files
with
4,313 additions
and
1,236 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div class="row intro-video-block"> | ||
<div class="col-xs-12"> | ||
<div class="embed-responsive embed-responsive-16by9"> | ||
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/DnX2XHEn0-g?autoplay=1" frameborder="0" allowfullscreen allow="autoplay"></iframe> | ||
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/y5Cw8D4GGW4?autoplay=1" frameborder="0" allowfullscreen allow="autoplay"></iframe> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="row mt5"> | ||
<div class="col-md-offset-3 col-md-6 text-center pt50"> | ||
<h3 class="lineheight"><%- i18next.t("You're using open source Community Edition. Please consider upgrading to the Enterprise Edition and support this open source project") %></h3> | ||
<h3 class="lineheight"><%- i18next.t('You deserve awesome enterprise support') %>:-)</h3> | ||
</div> | ||
<div class="col-md-12 text-center mt5 pt20"> | ||
<a href="http://restya.com/enterprise?category=board&utm_source=Restyaboard - <%- SITE_NAME %>&utm_medium=web&utm_campaign=upgradepopup&category=contact" target="_blank" title="<%- i18next.t('Upgrade to Enterprise Edition') %>" class="btn btn-primary navbar-btn mt5 right-mar"><%- i18next.t('Upgrade') %></a> | ||
<a href="http://restya.com/donate/?utm_source=Restyaboard - <%- SITE_NAME %>&utm_medium=web&utm_campaign=upgradepopup&category=contact" target="_blank" title="<%- i18next.t('Donate') %>" class="btn btn-default navbar-btn mt5"><%- i18next.t('Donate') %></a> | ||
</div> | ||
<div class="col-md-12 text-center mt5 pt20"> | ||
<a href="javascript:void(0);" target="_blank" title="<%- i18next.t('Continue Community Edition') %>" class="js-close-popover"><%- i18next.t('Continue Community Edition') %></a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
/** | ||
* popup View | ||
* @class popupView | ||
* @constructor | ||
* @extends Backbone.View | ||
*/ | ||
|
||
App.popupView = Backbone.View.extend({ | ||
/** | ||
* Constructor | ||
* initialize default values and actions | ||
*/ | ||
initialize: function() { | ||
if (window.location.hash === "#/boards") { | ||
this.render(); | ||
} | ||
}, | ||
template: JST['templates/popup'], | ||
/** | ||
* Events | ||
* functions to fire on events (Mouse events, Keyboard Events, Frame/Object Events, Form Events, Drag Events, etc...) | ||
*/ | ||
events: { | ||
'click .js-close-popover': 'closePopup', | ||
}, | ||
/** | ||
* render() | ||
* populate the html to the dom | ||
* @param NULL | ||
* @return object | ||
* | ||
*/ | ||
render: function() { | ||
if (authuser.user.is_show_community_edition_popup === "t") { | ||
this.$el.dockmodal({ | ||
height: 500, | ||
width: 200, | ||
animationSpeed: ANIMATION_SPEED, | ||
title: "<div class='col-xs-12'><div class='text-center'><strong>" + i18next.t('Upgrade to Enterprise Edition') + "</strong></div></div>", | ||
beforePopout: function(event) { | ||
if ($(window).width() < 1400) { | ||
$('.editor').resizable({ | ||
maxWidth: 1000, | ||
minWidth: 500 | ||
}); | ||
} else { | ||
$('.editor').resizable({ | ||
maxWidth: 1050, | ||
minWidth: 500 | ||
}); | ||
} | ||
$('.editor').each(function() { | ||
var $this = $(this); | ||
var factor1 = '30', | ||
factor2 = '70'; | ||
if (!_.isUndefined(authuser.user) && !_.isEmpty(authuser.user)) { | ||
if (!_.isUndefined(authuser.user.persist_card_divider_position) && authuser.user.persist_card_divider_position !== null) { | ||
factor1 = authuser.user.persist_card_divider_position; | ||
factor2 = 100 - factor1; | ||
} | ||
} | ||
$this.resizable({ | ||
handles: 'e', | ||
resize: function(event, ui) { | ||
var x = ui.element.outerWidth(); | ||
var ele = ui.element; | ||
var factor = x * 100 / $(this).parent().width(); | ||
var f1 = factor; | ||
var f2 = 100 - factor; | ||
$.cookie('factor1', f1); | ||
$this.css('width', f1 + '%'); | ||
$this.next().css('width', f2 + '%'); | ||
}, | ||
stop: function(event, ui) { | ||
var x = ui.element.outerWidth(); | ||
var factor = x * 100 / $(this).parent().width(); | ||
if (!_.isUndefined(authuser.user) && !_.isEmpty(authuser.user)) { | ||
var data = { | ||
persist_card_divider_position: factor | ||
}; | ||
var user = new App.User(); | ||
user.url = api_url + 'users/' + authuser.user.id + '.json'; | ||
user.set('id', parseInt(authuser.user.id)); | ||
user.save(data, { | ||
success: function(model, response) { | ||
var Auth = JSON.parse($.cookie('auth')); | ||
Auth.user.persist_card_divider_position = factor; | ||
$.cookie('auth', JSON.stringify(Auth)); | ||
authuser = Auth; | ||
} | ||
}); | ||
} | ||
}, | ||
}).css({ | ||
width: factor1 + '%' | ||
}).next().css({ | ||
width: factor2 + '%' | ||
}); | ||
}); | ||
}, | ||
beforeRestore: function(event) { | ||
$('.editor').resizable({ | ||
maxWidth: 380, | ||
minWidth: 350 | ||
}); | ||
$('.editor').each(function() { | ||
var $this = $(this); | ||
var factor1 = '60'; | ||
var factor2 = '40'; | ||
$this.resizable({ | ||
handles: 'e', | ||
resize: function(event, ui) { | ||
var x = ui.element.outerWidth(); | ||
var ele = ui.element; | ||
var factor = x * 100 / $(this).parent().width(); | ||
var f1 = factor; | ||
var f2 = 100 - factor; | ||
$this.css('width', f1 + '%'); | ||
$this.next().css('width', f2 + '%'); | ||
} | ||
}).css({ | ||
width: factor1 + '%' | ||
}).next().css({ | ||
width: factor2 + '%' | ||
}); | ||
}); | ||
}, | ||
open: function(event, dialog) { | ||
$('.dockmodal').removeClass('active'); | ||
event.parent().parent().addClass('active'); | ||
$('.dockmodal').click(function(e) { | ||
$('.dockmodal').removeClass('active'); | ||
$(this).addClass('active'); | ||
}); | ||
$(window).bind('keydown', function(e) { | ||
if (e.keyCode === 27) { | ||
$('.action-close', $('.dockmodal.active')).trigger('click'); | ||
} | ||
}); | ||
$('.dockmodal').css('height', '500'); | ||
}, | ||
close: function(event, dialog) { | ||
var data = {}; | ||
data.is_show_community_edition_popup = 0; | ||
var user = new App.User(); | ||
user.url = api_url + 'users/' + authuser.user.id + '.json'; | ||
user.save(data, { | ||
success: function(response) { | ||
if (!_.isEmpty(response.attributes.success)) { | ||
var Auth = JSON.parse($.cookie('auth')); | ||
Auth.user.is_show_community_edition_popup = 0; | ||
$.cookie('auth', JSON.stringify(Auth)); | ||
authuser = Auth; | ||
} | ||
} | ||
}); | ||
} | ||
}); | ||
this.$el.html(this.template); | ||
} | ||
return this; | ||
}, | ||
closePopup: function(e) { | ||
e.preventDefault(); | ||
$('.action-close', $('.dockmodal.active')).trigger('click'); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.