Remove all Help notion code

stable
Xavier Julián 2015-03-11 09:00:49 +01:00
parent 4d2ffcbe51
commit 8aa88cf28d
7 changed files with 0 additions and 87 deletions

View File

@ -602,41 +602,3 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS
} }
module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", "$tgTemplate", WatchersLightboxDirective]) module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", "$tgTemplate", WatchersLightboxDirective])
#############################################################################
## Notion Lightbox Directive
#############################################################################
# Lightbox
NotionLightboxDirective = (lightboxService) ->
link = ($scope, $el, $attrs, $model) ->
$scope.$on "notion:open", (event, lightboxId) ->
if $el.attr("id") == lightboxId
lightboxService.open($el)
$el.on "click", ".button-green", (event) ->
lightboxService.close($el)
$scope.$on "$destroy", ->
$el.off()
return {link:link}
module.directive("tgLbNotion", ["lightboxService", NotionLightboxDirective])
# Button
NotionButtonDirective = ($log, $rootScope) ->
link = ($scope, $el, $attrs, $model) ->
if not $attrs.tgLbNotionButton?
return $log.error "NotionButtonDirective: the directive need the id of the notion lightbox"
$el.on "click", ->
$rootScope.$broadcast("notion:open", $attrs.tgLbNotionButton)
$scope.$on "$destroy", ->
$el.off()
return {link:link}
module.directive("tgLbNotionButton", ["$log", "$rootScope", NotionButtonDirective])

View File

@ -1,12 +0,0 @@
//- NOTE: - Add a lightbox-notion at the end of parent template. Ex:
//-
//- div.hide.lightbox.lightbox-generic-notion(id="notion-admin-project-values-us-points",
//- tg-lb-notion)
//- include views/modules/help-notions/lightbox-notion-admin-project-values-us-points
//-
//- - Defined variable 'helpLightboxId' in parent template. Ex:
//-
//- - var helpLightboxId = "admin-project-values-us-points"
//- include views/components/help
a.icon.icon-idea.help(href="", title="You need some help?", tg-lb-notion-button=helpLightboxId)

View File

@ -1,12 +0,0 @@
a.close(href="", title="close")
span.icon.icon-delete
section
h2.title
block title
block content
div.options
a.button-green(href="", title="Accept")
span Accept

View File

@ -1,12 +0,0 @@
extends lightbox-generic-notion
block title
About User Story (US) Points:
block content
p
| Most people start off with 1 point = 1 man day of effort. If you're new to scrum & agile start there.
p
| After the first week if you and your team expected to accomplish 25 points (i.e. 5 people 5 full days)
| and only got half done, learn from your findings, and adjust expectations for the following week.
| By doing so you'll learn your teams true 'velocity.'

View File

@ -1,11 +0,0 @@
a.help {
color: $gray-light;
position: absolute;
right: 1rem;
top: 1rem;
transition: color .2s linear;
&:hover {
color: $green-taiga;
transition: color .2s linear;
}
}

View File

@ -52,7 +52,6 @@ exports.files = function () {
'components/select-color', 'components/select-color',
'components/loader', 'components/loader',
'components/loading-bar', 'components/loading-bar',
'components/help-notion-button',
'components/beta', 'components/beta',
'components/markitup', 'components/markitup',
'components/markdown-help', 'components/markdown-help',

View File

@ -83,7 +83,6 @@ linters:
exclude: exclude:
- 'app/styles/components/buttons.scss' - 'app/styles/components/buttons.scss'
- 'app/styles/layout/forms.scss' - 'app/styles/layout/forms.scss'
- 'app/styles/components/help-notion-button.scss'
- 'app/styles/components/markdown-help.scss' - 'app/styles/components/markdown-help.scss'
SelectorDepth: SelectorDepth: