mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
remove broken website field from profile
Websites can be added with markdown in the blurb field
This commit is contained in:
parent
ddd45d76d4
commit
2e0d83a9cb
2 changed files with 1 additions and 20 deletions
|
|
@ -97,13 +97,6 @@ script(id='partials/options.profile.profile.html', type='text/ng-template')
|
||||||
span.muted(ng-hide='profile.profile.blurb') - None -
|
span.muted(ng-hide='profile.profile.blurb') - None -
|
||||||
//{{profile.profile.blurb | linky:'_blank'}}
|
//{{profile.profile.blurb | linky:'_blank'}}
|
||||||
|
|
||||||
h4 Websites
|
|
||||||
ul(ng-show='profile.profile.websites.length > 0')
|
|
||||||
// TODO let's remove links eventually, since we can do markdown on profiles
|
|
||||||
li(ng-repeat='website in profile.profile.websites')
|
|
||||||
a(target='_blank', ng-href='{{website}}') {{website}}
|
|
||||||
span.muted(ng-hide='profile.profile.websites.length > 0') - None -
|
|
||||||
|
|
||||||
div.whatever-options(ng-show='_editing.profile')
|
div.whatever-options(ng-show='_editing.profile')
|
||||||
// TODO use photo-upload instead: https://groups.google.com/forum/?fromgroups=#!topic/derbyjs/xMmADvxBOak
|
// TODO use photo-upload instead: https://groups.google.com/forum/?fromgroups=#!topic/derbyjs/xMmADvxBOak
|
||||||
.control-group.option-large
|
.control-group.option-large
|
||||||
|
|
@ -116,15 +109,6 @@ script(id='partials/options.profile.profile.html', type='text/ng-template')
|
||||||
label.control-label Blurb
|
label.control-label Blurb
|
||||||
textarea.option-content(style='height:15em;', placeholder='Blurb', ng-model='editingProfile.blurb')
|
textarea.option-content(style='height:15em;', placeholder='Blurb', ng-model='editingProfile.blurb')
|
||||||
include ../shared/formatting-help
|
include ../shared/formatting-help
|
||||||
.control-group.option-large
|
|
||||||
label.control-label Websites
|
|
||||||
form(ng-submit='addWebsite()')
|
|
||||||
input.option-content(type='url', ng-model='_newWebsite', placeholder='Add Website')
|
|
||||||
ul
|
|
||||||
li(ng-repeat='website in editingProfile.websites')
|
|
||||||
| {{website}}
|
|
||||||
a(ng-click='removeWebsite($index)')
|
|
||||||
i.icon-remove
|
|
||||||
|
|
||||||
script(id='partials/options.profile.html', type="text/ng-template")
|
script(id='partials/options.profile.html', type="text/ng-template")
|
||||||
ul.nav.nav-tabs
|
ul.nav.nav-tabs
|
||||||
|
|
@ -140,4 +124,4 @@ script(id='partials/options.profile.html', type="text/ng-template")
|
||||||
|
|
||||||
.tab-content
|
.tab-content
|
||||||
.tab-pane.active
|
.tab-pane.active
|
||||||
div(ui-view)
|
div(ui-view)
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,6 @@ div(ng-controller='MemberModalCtrl')
|
||||||
.span6
|
.span6
|
||||||
img(ng-show='profile.profile.imageUrl', ng-src='{{profile.profile.imageUrl}}')
|
img(ng-show='profile.profile.imageUrl', ng-src='{{profile.profile.imageUrl}}')
|
||||||
markdown(ng-show='profile.profile.blurb', ng-model='profile.profile.blurb')
|
markdown(ng-show='profile.profile.blurb', ng-model='profile.profile.blurb')
|
||||||
ul(ng-show='profile.profile.websites')
|
|
||||||
li(ng-repeat='website in profile.profile.websites')
|
|
||||||
a(href='{{website}}', target='_blank') {{website}}
|
|
||||||
ul.muted.unstyled(ng-if='profile.auth.timestamps', style='margin-top:10px;')
|
ul.muted.unstyled(ng-if='profile.auth.timestamps', style='margin-top:10px;')
|
||||||
li {{profile._id}}
|
li {{profile._id}}
|
||||||
li(ng-show='profile.auth.timestamps.created') - Member since {{timestamp(profile.auth.timestamps.created)}} -
|
li(ng-show='profile.auth.timestamps.created') - Member since {{timestamp(profile.auth.timestamps.created)}} -
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue