Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

MUMMNG-2017: Make list-of-links widget type, LOL #346

Merged
merged 4 commits into from
Nov 5, 2015

Conversation

jhanstra
Copy link
Contributor

@jhanstra jhanstra commented Nov 4, 2015

Adds a list-of-links widget type to /web. This widget just displays a grid of four links using the circle link directive. The information about these links (href, title, target, icon) are provided by the widgetConfig. Entity file changes for other list-of-link widgets coming soon.
image

@@ -4,6 +4,9 @@ define(['angular'], function(angular){

var app = angular.module('my-app.layout.widget.controllers', []);

app.controller('ListOfLinksController', ['$scope', 'layoutService', function($scope, layoutService){
}]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there is nothing to do in the controller, you don't need one true? (directives don't have to have a controller connected to them)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Kind of put it in there as a placeholder but we could definitely take it out til it's necessary.

@@ -80,4 +80,8 @@ weather {
.scroll-widget {
max-height: 210px;
overflow-y: scroll;
}
.lol .v-center {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 for namespacing

@jhanstra
Copy link
Contributor Author

jhanstra commented Nov 5, 2015

Special cases:
image

image

image

@timlevett
Copy link
Contributor

This is huge! 👍 Strong work.

@jhanstra
Copy link
Contributor Author

jhanstra commented Nov 5, 2015

One more special case (more than 4 links):
image

Note: this case limits to 7 links.

@apetro
Copy link
Contributor

apetro commented Nov 5, 2015

👍 Hurray for templates. This is how we will scale and make maintenance affordable.

@keirserrie
Copy link

👍 looks great, plus 7 means no scrolling woo hoo

jhanstra added a commit that referenced this pull request Nov 5, 2015
MUMMNG-2017: Make list-of-links widget type, LOL
@jhanstra jhanstra merged commit 700a4a4 into master Nov 5, 2015
@timlevett timlevett deleted the refactor-templates branch September 28, 2016 20:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants