Commit a1691bbd authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Amplía vista inicial con enlaces sociales

parent 855acd39
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ define([
	, "templates/InitialTitle"
	, "templates/InitialInfo"
	, "redmic/base/Credentials"
	, "app/home/views/SocialWidget"
	, "app/home/views/WidgetLastActivity"
	, "app/home/views/WidgetFavourites"
], function(
@@ -22,6 +23,7 @@ define([
	, TemplateTitle
	, TemplateInfo
	, Credentials
	, SocialWidget
	, WidgetLastActivity
	, WidgetFavourites
){
@@ -67,7 +69,7 @@ define([
				},
				info: {
					width: 3,
					height: 2,
					height: 1,
					type: TemplateDisplayer,
					props: {
						title: this.i18n.info,
@@ -75,6 +77,14 @@ define([
						"class": "hardTexturedContainer.borderRadiusBottom",
						target: "initial_info"
					}
				},
				social: {
					width: 3,
					height: 1,
					type: SocialWidget,
					props: {
						title: this.i18n.followUs
					}
				}
			};

+76 −0
Original line number Diff line number Diff line
define([
	'app/home/views/_DashboardItem'
	, 'app/base/views/Module'
	, 'dojo/_base/declare'
	, 'dojo/_base/lang'
	, 'put-selector/put'
], function(
	_DashboardItem
	, Module
	, declare
	, lang
	, put
) {

	return declare(_DashboardItem, {
		//	summary:
		//		Widget contenedor de enlaces sociales

		constructor: function(args) {

			this.config = {
				items: [{
					url: '/feedback',
					label: 'Feedback',
					icon: 'fa-envelope-o'
				},{
					url: 'https://twitter.com/redmic_oag',
					label: 'Twitter',
					icon: 'fa-twitter'
				},{
					url: 'https://www.linkedin.com/company/redmic',
					label: 'LinkedIn',
					icon: 'fa-linkedin'
				},{
					url: 'https://www.youtube.com/channel/UCLyTJ8ryUtq0A-kcxsg4InQ',
					label: 'YouTube',
					icon: 'fa-youtube'
				},{
					url: 'https://redmicdev.wordpress.com',
					label: 'WordPress',
					icon: 'fa-wordpress'
				},{
					url: 'https://docs.redmic.es',
					label: 'Docs',
					icon: 'fa-book'
				}],
				className: 'socialPanel'
			};

			lang.mixin(this, this.config, args);
		},

		postCreate: function() {

			this.inherited(arguments);

			this._createItems();
		},

		_createItems: function() {

			var parentNode = put(this.contentNode, 'div.' + this.className);

			for (var i = 0; i < this.items.length; i++) {
				this._createItem(parentNode, this.items[i]);
			}
		},

		_createItem: function(parentNode, item) {

			var node = put(parentNode, 'a[href=' + item.url + '][target=_blank]');

			put(node, 'i.fa.' + item.icon + '[title=' + item.label + ']');
		}
	});
});
+2 −0
Original line number Diff line number Diff line
@@ -1165,6 +1165,8 @@ define({
	, "sliderSelector": "Selector desplazable"
	, "dateFilter": "Filtro por fecha"

	, "followUs": "Síguenos"

	// Para capas que no se pueden cambiar las keys
	, "descript_1": "Descripción"
	, "descriptio": "Descripción"
+2 −0
Original line number Diff line number Diff line
@@ -1170,6 +1170,8 @@ define({
		, "sliderSelector": "Slider selector"
		, "dateFilter": "Date filter"

		, "followUs": "Follow us"

		//Para capas que no se pueden cambiar las keys
		, "descript_1": "Description"
		, "descriptio": "Description"
Compare 36ab25e5 to 43807eb4
Original line number Diff line number Diff line
Subproject commit 36ab25e5fce15ddb19c3718b56ad576d627fc807
Subproject commit 43807eb4669599e650195d93960386a417871400