This repository has been archived by the owner on May 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
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 #346 from UW-Madison-DoIT/refactor-templates
MUMMNG-2017: Make list-of-links widget type, LOL
- Loading branch information
Showing
6 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
angularjs-portal-home/src/main/webapp/my-app/layout/widget/partials/lol.html
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,32 @@ | ||
<div class='widget-body lol'> | ||
<div ng-show="config.links.length == 1"> | ||
<div class='col-xs-6 col-xs-offset-3 v-center center' ng-repeat='item in config.links'> | ||
<circle-button data-href='{{item.href}}' data-target='{{item.target}}' data-fa-icon='{{item.icon}}' data-disabled='false' data-title='{{item.title}}'></circle-button> | ||
</div> | ||
</div> | ||
<div ng-show="config.links.length == 2"> | ||
<div class='col-xs-6 v-center center' ng-repeat='item in config.links'> | ||
<circle-button data-href='{{item.href}}' data-target='{{item.target}}' data-fa-icon='{{item.icon}}' data-disabled='false' data-title='{{item.title}}'></circle-button> | ||
</div> | ||
</div> | ||
<div ng-show="config.links.length == 3"> | ||
<div ng-repeat="item in config.links"> | ||
<div class='col-xs-6 center' ng-class="{'col-xs-offset-3':($index==2)}"> | ||
<circle-button data-href='{{item.href}}' data-target='{{item.target}}' data-fa-icon='{{item.icon}}' data-disabled='false' data-title='{{item.title}}'></circle-button> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-show="config.links.length == 4"> | ||
<div class='col-xs-6 center' ng-repeat='item in config.links'> | ||
<circle-button data-href='{{item.href}}' data-target='{{item.target}}' data-fa-icon='{{item.icon}}' data-disabled='false' data-title='{{item.title}}'></circle-button> | ||
</div> | ||
</div> | ||
<div ng-show="config.links.length > 4"> | ||
<ul class="widget-list"> | ||
<li ng-repeat='item in config.links | limitTo: 7' class="link-icon"> | ||
<i class="fa {{item.icon}}"></i><a href="{{item.href}}" target="{{item.target}}">{{item.title}}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<a class="btn btn-default launch-app-button" href="{{portlet.url}}" target="_blank">{{config.launchText}}</a> |
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