From 2e0d83a9cb7e0dda496afd810197f987dcb9eaa2 Mon Sep 17 00:00:00 2001 From: Adrien Lemaire Date: Tue, 12 Nov 2013 17:31:08 +1100 Subject: [PATCH] remove broken website field from profile Websites can be added with markdown in the blurb field --- views/options/profile.jade | 18 +----------------- views/shared/modals/members.jade | 3 --- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/views/options/profile.jade b/views/options/profile.jade index abcf987fc8..076a269d61 100644 --- a/views/options/profile.jade +++ b/views/options/profile.jade @@ -97,13 +97,6 @@ script(id='partials/options.profile.profile.html', type='text/ng-template') span.muted(ng-hide='profile.profile.blurb') - None - //{{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') // TODO use photo-upload instead: https://groups.google.com/forum/?fromgroups=#!topic/derbyjs/xMmADvxBOak .control-group.option-large @@ -116,15 +109,6 @@ script(id='partials/options.profile.profile.html', type='text/ng-template') label.control-label Blurb textarea.option-content(style='height:15em;', placeholder='Blurb', ng-model='editingProfile.blurb') 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") ul.nav.nav-tabs @@ -140,4 +124,4 @@ script(id='partials/options.profile.html', type="text/ng-template") .tab-content .tab-pane.active - div(ui-view) \ No newline at end of file + div(ui-view) diff --git a/views/shared/modals/members.jade b/views/shared/modals/members.jade index 2f5f1ae43e..10de5b3f05 100644 --- a/views/shared/modals/members.jade +++ b/views/shared/modals/members.jade @@ -9,9 +9,6 @@ div(ng-controller='MemberModalCtrl') .span6 img(ng-show='profile.profile.imageUrl', ng-src='{{profile.profile.imageUrl}}') 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;') li {{profile._id}} li(ng-show='profile.auth.timestamps.created') - Member since {{timestamp(profile.auth.timestamps.created)}} -