Commit e9f7d268 authored by Mostafa Barmshory's avatar Mostafa Barmshory
Browse files

Adding link into the feature list.

parent 7a9ea6f8
Pipeline #11318394 passed with stage
in 15 minutes and 41 seconds
......@@ -20,6 +20,7 @@
<!-- endbuild -->
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/feature-list.css">
<link rel="stylesheet" href="styles/main-demo.css">
<!-- endbuild -->
</head>
......
/* Ling view if ther is and link value */
.feature-list-link{
cursor: pointer;
}
\ No newline at end of file
<!-- Main contetn -->
<div
class="carousel-simple-text"
ng-hide="isSelected()"
ng-bind-html="wbModel.text | wbunsafe">
</div>
<div
class="carousel-simple-text"
ui-tinymce="{
selector : 'div.tinymce',
theme : 'inlite',
plugins : 'directionality contextmenu table link paste image imagetools hr textpattern autolink textcolor colorpicker ',
insert_toolbar : 'quickimage quicktable',
selection_toolbar : 'bold italic | quicklink h1 h2 h3 blockquote | ltr rtl | forecolor',
insert_button_items: 'image link | inserttable | hr',
inline : true,
paste_data_images : true,
branding: false,
imagetools_toolbar: 'rotateleft rotateright | flipv fliph | editimage imageoptions'
}"
ng-model="wbModel.text"
ng-show="isSelected()"
flex>
</div>
<div
ng-class="{'dd-rtl':wbModel.style.rtl}"
layout="column"
......@@ -12,29 +32,39 @@
<div
layout="column" layout-align="center center"
layout-padding
ng-repeat="s in wbModel.features">
ng-repeat="s in wbModel.features"
ng-class="{'feature-list-link': s.action.type}"
ng-click="!wbEditable && runAction(s)">
<img width="128px" height="128px" ng-src="{{s.image}}">
<h3
ng-style="{'color': wbModel.style.color}"
ng-class="{'dd-rtl':wbModel.style.rtl}" >
{{s.title}}
<div ng-if="wbEditable" >
<md-button class="md-icon-button" ng-click="editFeature(s)">
<wb-icon ng-style="{ 'color': wbModel.style.color }">edit</wb-icon>
</md-button>
<md-button class="md-icon-button" ng-click="removeFeature(s)">
<wb-icon ng-style="{ 'color': wbModel.style.color }">delete</wb-icon>
</md-button>
</div>
</h3>
<p
ng-style="{'color': wbModel.style.color, 'line-height':'2', 'text-align':'center'}"
ng-class="{'dd-rtl':wbModel.style.rtl}" >{{s.text}}</p>
<h3>{{s.title}}</h3>
<div
class="carousel-simple-text"
ng-hide="isSelected()"
ng-bind-html="s.text | wbunsafe">
</div>
<div
class="carousel-simple-text"
ui-tinymce="{
selector : 'div.tinymce',
theme : 'inlite',
plugins : 'directionality contextmenu table link paste image imagetools hr textpattern autolink textcolor colorpicker ',
insert_toolbar : 'quickimage quicktable',
selection_toolbar : 'bold italic | quicklink h1 h2 h3 blockquote | ltr rtl | forecolor',
insert_button_items: 'image link | inserttable | hr',
inline : true,
paste_data_images : true,
branding: false,
imagetools_toolbar: 'rotateleft rotateright | flipv fliph | editimage imageoptions'
}"
ng-model="s.text"
ng-show="isSelected()"
flex>
</div>
</div>
<md-button
ng-if="wbEditable"
aria-label="add social"
ng-click="addFeature()">
<md-icon ng-style="{'color': wbModel.style.color}">add</md-icon>
<wb-icon>add</wb-icon>
</md-button>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment