Skip to content

Commit

Permalink
Merge pull request #4150 from RestyaPlatform/v0.6.9
Browse files Browse the repository at this point in the history
Fixes #v0.6.9: Restyaboard v0.6.9 release
  • Loading branch information
rrjanbiah authored Aug 26, 2020
2 parents 716da6c + d66692b commit bf46e24
Show file tree
Hide file tree
Showing 51 changed files with 8,195 additions and 2,929 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ To upgrade, overwrite application files and apply respective DB script:
* v0.6.5 to v0.6.6 - [`/sql/upgrade-0.6.5-0.6.6.sql`](https://github.com/RestyaPlatform/board/blob/master/sql/upgrade-0.6.5-0.6.6.sql)
* v0.6.6 to v0.6.7 - [`/sql/upgrade-0.6.6-0.6.7.sql`](https://github.com/RestyaPlatform/board/blob/master/sql/upgrade-0.6.6-0.6.7.sql)
* v0.6.7 to v0.6.8 - [`/sql/upgrade-0.6.7-0.6.8.sql`](https://github.com/RestyaPlatform/board/blob/master/sql/upgrade-0.6.7-0.6.8.sql)
* v0.6.8 to v0.6.9 - [`/sql/upgrade-0.6.8-0.6.9.sql`](https://github.com/RestyaPlatform/board/blob/master/sql/upgrade-0.6.8-0.6.9.sql)

### Configuring Restyaboard

Expand Down
2 changes: 1 addition & 1 deletion api_explorer/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "Dual License (OSL 3.0 & Commercial License)",
"url": "https://github.com/RestyaPlatform/board/blob/master/LICENSE.txt"
},
"version": "0.6.8"
"version": "0.6.9"
},
"basePath": "/v1",
"consumes": [
Expand Down
1 change: 1 addition & 0 deletions client/js/models/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ App.Board = Backbone.Model.extend({
this.checklist_items = new App.CheckListItemCollection();
this.boards_stars = new App.BoardStarCollection();
this.acl_links = new App.AclBoardLinksCollection();
this.attributes.is_card_filtered = false;
}
});
2 changes: 1 addition & 1 deletion client/js/templates/about_us.jst.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="about-block col-xs-pull-0 col-xs-push-0">
<h1><a title="<%- SITE_NAME %>" href="javascript:void(0);"><img src="img/logo.png" alt="[Image: <%- SITE_NAME %> ]" title="<%- SITE_NAME %>" class="img-responsive center-block"/></a> </h1>
<small class="show text-center">v 0.6.8 (2019-12-16)</small>
<small class="show text-center">v 0.6.9 (2020-08-26)</small>
<h3><%- i18next.t("Technologies and Components") %></h3>
<ul class="list-unstyled">
<li>Restya platform <a class="text-primary" target="_blank" title="http://restya.com/?utm_source=Restyaboard - <%- SITE_NAME %>&utm_medium=web&utm_campaign=about_us" href="http://restya.com/">http://restya.com/ </a></li>
Expand Down
6 changes: 4 additions & 2 deletions client/js/templates/activity.jst.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@
<% if(activity.attributes.type == 'add_comment') {
var originalComment;
if (!_.isUndefined(activity.attributes.revisions) && !_.isEmpty(activity.attributes.revisions) && activity.attributes.revisions !== null) {
originalComment = activity.attributes.revisions.old_value.comment;
activity.attributes.comment = filterXSS(activity.attributes.revisions.old_value.comment);
originalComment = filterXSS(activity.attributes.revisions.old_value.comment);
} else {
originalComment = activity.attributes.comment;
activity.attributes.comment = filterXSS(activity.attributes.comment);
originalComment = filterXSS(activity.attributes.comment);
}
if(!_.isUndefined(activity.from_footer)) { %>
<span><%= comment %></span>
Expand Down
1 change: 1 addition & 0 deletions client/js/templates/admin_activity_index.jst.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
} else {
organizationLink = '<a href="javascript:void(0);">' + _.escape(activity.attributes.organization_name) + '</a>';
}
activity.attributes.comment = filterXSS(activity.attributes.comment);
if(activity.attributes.type != 'add_comment') {
if(activity.attributes.comment.indexOf('##ORGANIZATION_LINK##') != -1){
activity.attributes.comment = activity.attributes.comment.replace('##ORGANIZATION_LINK##', organizationLink);
Expand Down
100 changes: 0 additions & 100 deletions client/js/templates/card.jst.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -109,106 +109,6 @@
</li>
<%}%>
<li id="js-card-customfields-list-<%- card.attributes.id %>" class="hide"></li>
<% if (!_.isUndefined(APPS) && APPS !== null && !_.isUndefined(APPS.permission_checked_apps) && APPS.permission_checked_apps.indexOf('r_custom_fields') !== -1) {
var card_customfield_list = '';
if (!_.isUndefined(App.current_board) && !_.isEmpty(App.current_board) && App.current_board !== null && !_.isUndefined(App.current_board.attributes) && !_.isEmpty(App.current_board.attributes) && App.current_board.attributes !== null && App.current_board.attributes.custom_fields && App.current_board.attributes.custom_fields.length > 0) {
_.each(App.current_board.attributes.custom_fields, function(custom_field) {
var custom_visibility = '';
if (custom_field.visibility != '1') {
custom_visibility = 'hide';
}
var card_customfield_value = '';
var labelClass = '';
if (_.isEmpty(custom_field.color) || _.isUndefined(custom_field.color)) {
labelClass = 'label-default';
}
if (!_.isEmpty(custom_field.cards_custom_fields) && custom_field.cards_custom_fields !== null) {
var custom_field_json = jQuery.parseJSON(custom_field.cards_custom_fields);
var filtered_cards_custom_fields = custom_field_json.filter(function(x) {
return x.card_id === card.id;
});
if (!_.isUndefined(filtered_cards_custom_fields) && !_.isEmpty(filtered_cards_custom_fields) && filtered_cards_custom_fields.length > 0) {
_.each(filtered_cards_custom_fields, function(value) {
card_customfield_value = value.value;
card_customfield_cardId = value.card_id;
if (card_customfield_value) {
var hours_mins;
if (custom_field.type === 'date') {
card_customfield_value = dateFormat(card_customfield_value, "mediumDate");
}
if (custom_field.type === 'time') {
var field_time = card_customfield_value.split(':');
var time_noon = '';
if (field_time[0] < 12) {
if (field_time[0] < 10 && field_time[0].indexOf('0') == -1) {
field_time[0] = '0' + field_time[0];
}
time_noon = 'AM';
} else {
time_noon = 'PM';
if (field_time[0] != 12) {
field_time[0] = field_time[0] - 12;
}
if (field_time[0] < 10) {
field_time[0] = '0' + field_time[0];
}
}
card_customfield_value = field_time[0] + ':' + field_time[1] + ' ' + time_noon;
}
if (custom_field.type === 'datetime') {
if (card_customfield_value.indexOf('T') > -1) {
card_customfield_value = card_customfield_value.replace('T', ' ');
var date = card_customfield_value.split(' ');
card_customfield_value = date['0'];
card_customfield_value = dateFormat(card_customfield_value, "mediumDate");
if (!_.isEmpty(date[1])) {
hours_mins = date[1].split(':');
var noon = '';
if (hours_mins[0] < 12) {
if (hours_mins[0] < 10 && hours_mins[0].indexOf('0') == -1) {
hours_mins[0] = '0' + hours_mins[0];
}
noon = 'AM';
} else {
noon = 'PM';
if (hours_mins[0] != 12) {
hours_mins[0] = hours_mins[0] - 12;
}
if (hours_mins[0] < 10) {
hours_mins[0] = '0' + hours_mins[0];
}
}
hours_mins = hours_mins[0] + ':' + hours_mins[1] + ' ' + noon;
}
card_customfield_list += '<li class=" js-custom-field-' + card.id + '-' + custom_field.id + ' card-listing-truncate">';
if (CheckFieldExists(App.current_board, custom_field.name, null, 'boolean', 'r_gridview_configure')) {
card_customfield_list += '<small title="' + custom_field.name + ': ' + card_customfield_value + ' at ' + hours_mins + '" ><span class="' + custom_visibility + ' label ' + labelClass + '" style="background:' + custom_field.color + ';">' + card_customfield_value + ' at ' + hours_mins + '</span></small>';
}
card_customfield_list += '</li>';
}
} else {
if (CheckFieldExists(App.current_board, custom_field.name, null, 'boolean', 'r_gridview_configure')) {
card_customfield_list += '<li class=" js-custom-field-' + card.id + '-' + custom_field.id + ' card-listing-truncate">';
}
if (CheckFieldExists(App.current_board, custom_field.name, null, 'boolean', 'r_gridview_configure')) {
card_customfield_list += '<small title="' + custom_field.name + ': ' + card_customfield_value + '" ><span class="' + custom_visibility + ' label ' + labelClass + '" style="background:' + custom_field.color + ';">' + card_customfield_value + '</span></small>';
}
if (CheckFieldExists(App.current_board, custom_field.name, null, 'boolean', 'r_gridview_configure')) {
card_customfield_list += '</li>';
}
}
}
});
} else {
card_customfield_list += '<li class=" js-custom-field-' + card.id + '-' + custom_field.id + ' card-listing-truncate hide"></li>';
}
} else {
card_customfield_list += '<li class=" js-custom-field-' + card.id + '-' + custom_field.id + ' card-listing-truncate hide"></li>';
}
}); %>
<%= card_customfield_list %>
<% }
} %>
<% if(!_.isUndefined(card.attributes.due_date) && !_.isEmpty(card.attributes.due_date) && card.attributes.due_date != 'NULL'){
var date_times = card.attributes.due_date.split('T'),hours_mins;
var date_time = date_times[0].split(' ');
Expand Down
86 changes: 1 addition & 85 deletions client/js/templates/card_list_view.jst.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -149,91 +149,7 @@
if (!_.isUndefined(card.board) && !_.isEmpty(card.board) && !_.isUndefined(card.board.attributes.custom_fields) && card.board.attributes.custom_fields !== null) {
_.each(card.board.attributes.custom_fields, function(customfield){ %>
<% if(CheckFieldExists(card.board, customfield.name , null , 'boolean', 'r_listview_configure')){ %>
<td class="js-list-view-card-<%- card.attributes.id %>-customfield-<%- customfield.id %> card-listing-truncate" data-title="<%- customfield.label %>" id="list_view_config_data-<%- customfield.name %>">
<% if (!_.isUndefined(APPS.permission_checked_apps) && APPS.permission_checked_apps.indexOf('r_custom_fields') !== -1) {
var card_customfield_list = '';
var custom_visibility = '';
if (customfield.visibility != '1') {
custom_visibility = 'hide';
}
var card_customfield_value = '';
var labelClass = '';
if (_.isEmpty(customfield.color) || _.isUndefined(customfield.color)) {
labelClass = 'label-default';
}
if (!_.isEmpty(customfield.cards_custom_fields) && customfield.cards_custom_fields !== null) {
var custom_field_json = jQuery.parseJSON(customfield.cards_custom_fields);
var filtered_cards_custom_fields = custom_field_json.filter(function(x) {
return x.card_id === card.id;
});
if (!_.isUndefined(filtered_cards_custom_fields) && !_.isEmpty(filtered_cards_custom_fields) && filtered_cards_custom_fields.length > 0) {
_.each(filtered_cards_custom_fields, function(value) {
card_customfield_value = value.value;
card_customfield_cardId = value.card_id;
if (card_customfield_value) {
var hours_mins;
if (customfield.type === 'date') {
card_customfield_value = dateFormat(card_customfield_value, "mediumDate");
}
if (customfield.type === 'time') {
var field_time = card_customfield_value.split(':');
var time_noon = '';
if (field_time[0] < 12) {
if (field_time[0] < 10 && field_time[0].indexOf('0') == -1) {
field_time[0] = '0' + field_time[0];
}
time_noon = 'AM';
} else {
time_noon = 'PM';
if (field_time[0] != 12) {
field_time[0] = field_time[0] - 12;
}
if (field_time[0] < 10) {
field_time[0] = '0' + field_time[0];
}
}
card_customfield_value = field_time[0] + ':' + field_time[1] + ' ' + time_noon;
}
if (customfield.type === 'datetime') {
if (card_customfield_value.indexOf('T') > -1) {
card_customfield_value = card_customfield_value.replace('T', ' ');
var date = card_customfield_value.split(' ');
card_customfield_value = date['0'];
card_customfield_value = dateFormat(card_customfield_value, "mediumDate");
if (!_.isEmpty(date[1])) {
hours_mins = date[1].split(':');
var noon = '';
if (hours_mins[0] < 12) {
if (hours_mins[0] < 10 && hours_mins[0].indexOf('0') == -1) {
hours_mins[0] = '0' + hours_mins[0];
}
noon = 'AM';
} else {
noon = 'PM';
if (hours_mins[0] != 12) {
hours_mins[0] = hours_mins[0] - 12;
}
if (hours_mins[0] < 10) {
hours_mins[0] = '0' + hours_mins[0];
}
}
hours_mins = hours_mins[0] + ':' + hours_mins[1] + ' ' + noon;
}
card_customfield_list += '<small title="' + customfield.name + ': ' + card_customfield_value + ' at ' + hours_mins + '" ><span class="' + custom_visibility + ' label ' + labelClass + '" style="background:' + customfield.color + ';">' + card_customfield_value + ' at ' + hours_mins + '</span></small>';
}
} else {
card_customfield_list += '<small title="' + customfield.name + ': ' + card_customfield_value + '" ><span class="' + custom_visibility + ' label ' + labelClass + '" style="background:' + customfield.color + ';">' + card_customfield_value + '</span></small>';
} %>
<%= card_customfield_list %>
<% }
});
} else { %>
<small>-</small>
<% } %>
<% } else { %>
<small>-</small>
<% }
} %>
<td class="js-list-view-card-<%- card.attributes.id %>-customfield-<%- customfield.id %> card-listing-truncate" data-title="<%- customfield.label %>" id="list_view_config_data-<%- customfield.name %>"><small>-</small></td>
</td>
<% } %>
<% });
Expand Down
4 changes: 3 additions & 1 deletion client/js/templates/user_activity.jst.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
<% if(activity.attributes.type == 'add_comment' || activity.attributes.type == 'edit_comment') { %>
<span><%= comment %></span>
<% if(activity.attributes.type == 'add_comment' && !_.isUndefined(activity.attributes.revisions) && !_.isEmpty(activity.attributes.revisions) && activity.attributes.revisions !== null) {
activity.attributes.comment = activity.attributes.revisions.old_value.comment;
activity.attributes.comment = filterXSS(activity.attributes.revisions.old_value.comment);
} else {
activity.attributes.comment = filterXSS(activity.attributes.comment);
} %>
<% if(activity.attributes.type == 'add_comment') { %><div class="thumbnail media-body no-mar"><% } %>
<%= makeLink(converter.makeHtml((activity.attributes.comment)), activity.attributes.board_id) %>
Expand Down
Loading

0 comments on commit bf46e24

Please sign in to comment.