Skip to content

Commit

Permalink
remove some broken help links
Browse files Browse the repository at this point in the history
  • Loading branch information
hpiwowar committed Apr 6, 2016
1 parent 4229cd2 commit 4327b18
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 40 deletions.
26 changes: 11 additions & 15 deletions totalimpactwebapp/static/dist/Impactstory.js
@@ -1,6 +1,6 @@
/*! Impactstory - v0.0.1-SNAPSHOT - 2015-03-20
/*! Impactstory - v0.0.1-SNAPSHOT - 2016-04-06
* http://impactstory.org
* Copyright (c) 2015 Impactstory;
* Copyright (c) 2016 Impactstory;
* Licensed MIT
*/
angular.module('accountPage', [
Expand Down Expand Up @@ -495,6 +495,7 @@ angular.module('accounts.allTheAccounts', [

})

angular.module("accounts.allTheAccounts",["accounts.account"]).factory("AllTheAccounts",function(){var e=[],t={figshare:{displayName:"figshare",url:"http://figshare.com",sync:!0,descr:"Figshare is a repository where users can make all of their research outputs available in a citable, shareable and discoverable manner.",username:{inputNeeded:"author page URL",placeholder:"http://figshare.com/authors/your_username/12345"},usernameCleanupFunction:function(e){return"undefined"==typeof e?e:"http://"+e.replace("http://","")}},github:{displayName:"GitHub",sync:!0,usernameCleanupFunction:function(e){return e},url:"http://github.com",descr:"GitHub is an online code repository emphasizing community collaboration features.",username:{inputNeeded:"username",help:"Your GitHub account ID is at the top right of your screen when you're logged in."}},google_scholar:{displayName:"Google Scholar",sync:!1,usernameCleanupFunction:function(e){return e},url:"http://scholar.google.com/citations",descr:"Google Scholar profiles find and show scientists' articles as well as their citation impact.",username:{inputNeeded:"profile URL",placeholder:"http://scholar.google.ca/citations?user=your_user_id"}},orcid:{displayName:"ORCID",sync:!0,username:{inputNeeded:"ID",placeholder:"http://orcid.org/xxxx-xxxx-xxxx-xxxx",help:"You can find your ID at top left of your ORCID page, beneath your name (make sure you're logged in)."},usernameCleanupFunction:function(e){return e.replace("http://orcid.org/","")},url:"http://orcid.org",signupUrl:"http://orcid.org/register",descr:"ORCID is an open, non-profit, community-based effort to create unique IDs for researchers, and link these to research products. It's the preferred way to import products into Impactstory.",extra:"If ORCID has listed any of your products as 'private,' you'll need to change them to 'public' to be imported."},publons:{displayName:"Publons",url:"https://publons.com",sync:!0,descr:"Publons hosts and aggregates open peer reviews.",username:{inputNeeded:"author page URL",placeholder:"https://publons.com/author/12345/your-username/"},usernameCleanupFunction:function(e){return"undefined"==typeof e?e:"https://"+e.replace("https://","")}},slideshare:{displayName:"SlideShare",sync:!0,usernameCleanupFunction:function(e){return e},url:"http://slideshare.net",descr:"SlideShare is community for sharing presentations online.",username:{help:'Your username is right after "slideshare.net/" in your profile\'s URL.',inputNeeded:"username"}},twitter:{displayName:"Twitter",sync:!0,usernameCleanupFunction:function(e){return"@"+e.replace("@","")},url:"http://twitter.com",descr:"Twitter is a social networking site for sharing short messages.",username:{inputNeeded:"username",placeholder:"@example",help:"Your Twitter username is often written starting with @."}}},r=function(e){return"/static/img/logos/"+_(e.toLowerCase()).dasherize()+".png"},n=function(e){return e.endpoint?e.endpoint:makeName(e.displayName)},o=function(e){return e.replace(/ /g,"-").toLowerCase()};return{addProducts:function(t){e=e.concat(t)},getProducts:function(){return e},accountServiceNamesFromUserAboutDict:function(e){},foo:function(e){console.log("in foo")},get:function(e){console.log("in GET in alltheaccounts");var n=[],a=angular.copy(t);return console.log("accountsConfig",a),_.each(a,function(t,a){var s=a+"_id";t.username.value=e[s],t.accountHost=a,t.CSSname=o(t.displayName),t.logoPath=r(t.displayName),n.push(t)}),console.log("ret",n),_.sortBy(n,function(e){return e.displayName.toLocaleLowerCase()})}}});
// setup libs outside angular-land. this may break some unit tests at some point...#problemForLater
// Underscore string functions: https://github.com/epeli/underscore.string
_.mixin(_.str.exports());
Expand Down Expand Up @@ -2208,6 +2209,7 @@ angular.module('profileSingleProducts', [
}

})
angular.module("profile",["resources.users","resources.products","services.page","ui.bootstrap","security","services.loading","services.timer","profileSingleProducts","profileLinkedAccounts","services.userMessage","services.tour","directives.jQueryTools","update.update"]).config(["$routeProvider",function(e,r){e.when("/embed/:url_slug",{templateUrl:"profile/profile.tpl.html",controller:"ProfileCtrl"})}]).factory("UserProfile",function(e,r,t,o,n,i){var l={},u=!1;return{useCache:function(e){return"undefined"!=typeof e&&(u=!!e),u},makeAnchorLink:function(e,r){var o=e;return r&&(o+=":"+encodeURIComponent(r)),t.path()+"#"+o},filterProducts:function(e,r){var t=_.filter(e,function(e){return _.size(e.metrics)}),o=_.filter(e,function(e){return e.metrics&&0==_.size(e.metrics)});return"withMetrics"==r?t:"withoutMetrics"===r?o:t.concat(o)},scrollToCorrectLocation:function(){t.hash()&&r()},makeSlug:function(){l.url_slug=n.make(l.givenName,l.surname)},readyToCreateOnServer:function(){return l.url_slug&&!id},reset:function(){l={}},setId:function(e){id=e},getId:function(){return id},getSlug:function(){return l.url_slug},about:l}}).controller("ProfileCtrl",function(e,r,t,o,n,i,l,u,s,c,a,f,d,p,g,h,m,v,k,b,w,P,S,L,C){e.pinboardService=w,e.$watch("pinboardService.cols",function(e,r){w.saveState(!0)},!0),e.sortableOptions={},k.hasFullProducts()||(console.log("no full products!"),v.startPage()),S.start("profileViewRender"),S.start("profileViewRender.load"),C.setName("overview");var y=o.url_slug;i(function(){twttr.widgets.load()},1e3),e.profileLoading=k.isLoading,e.url_slug=y,e.hideSignupBannerNow=function(){e.hideSignupBanner=!0},e.refresh=function(){var e="/profile/"+y+"/products?action=refresh";console.log("POSTing to ",e),l.post(e,{}).success(function(e,r,t,o){console.log("POST returned. We're refreshing these tiids: ",e),renderProducts()})},e.humanDate=function(e){return moment(e).fromNow()},e.clickSignupLink=function(){p.track("Clicked profile footer signup link")},e.openProfileEmbedModal=function(){n.open({templateUrl:"profile/profile-embed-modal.tpl.html",controller:"profileEmbedModalCtrl",resolve:{url_slug:function(e){return e.when(y)}}})},e.sliceSortedCards=function(e,r,t){var o=_.sortBy(e,"sort_by").reverse(),n=o.concat([]);return n.slice(r,t)},e.nFormat=function(e){return e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":e},e.$watch("profileService.data",function(e,r){k.hasFullProducts()&&v.finishPage(),e.full_name?(C.setTitle(e.about.full_name),L.isLoggedInPromise(y).then(function(){p.track("viewed own profile",{"Number of products":e.products.length}),0===e.products.length&&(console.log("logged-in user looking at own profile with no products. showing tour."),P.start(e.about))})):e.is404},!0)}).directive("backToProfile",function(e,r){return{restrict:"A",replace:!0,template:"<a ng-show='returnLink' class='back-to-profile btn btn-info btn-sm' href='{{ returnLink }}' ng-disabled='loading.is()'><i class='icon-chevron-left left'></i>back to profile</a>",link:function(r,t){console.log("path: ",e.path()),r.returnLink=e.path().split("/")[1],"/embed"===r.returnLink&&(r.returnLink=null)}}});
angular.module("profile", [
'resources.users',
'resources.products',
Expand Down Expand Up @@ -2989,6 +2991,7 @@ angular.module('security.service', [



angular.module("settings.pageDescriptions",[]),angular.module("settings.pageDescriptions").factory("SettingsPageDescriptions",function(){var t=["Subscription","Profile","Notifications","Custom URL","Email","Password"],e=function(t){return"/settings/"+t.replace(" ","-").toLowerCase()},n=function(t){return e(t).substring(1)+"-settings.tpl.html"},r=[];return _.each(t,function(t){var i={displayName:t,urlPath:e(t),templatePath:n(t)};r.push(i)}),{get:function(){return r},getDescrFromPath:function(t){return _.findWhere(r,{urlPath:t})}}});
angular.module("settings.pageDescriptions", [])
angular.module('settings.pageDescriptions')
.factory('SettingsPageDescriptions', function(){
Expand Down Expand Up @@ -3463,6 +3466,7 @@ angular.module( 'signup', [
}
})

angular.module("update.update",["emguo.poller","resources.users"]).factory("Update",function(e,t,r,n,o,l){var s={},u,a,c=10,i,p,f=function(){s={},u=null,i=null,a=null},d=function(){l.get({id:u}).$promise.then(function(e){console.log("tick() got /refresh_status response back from server",e),s=e,100==e.percent_complete?(console.log("tick() satisfied success criteria, calling dedup"),s.isCrunching=!0,o.after_refresh_cleanup({id:u},{}).$promise.then(function(e){console.log("after-refresh-cleanup successful!",e)},function(e){console.log("after-refresh-cleanup failed :(",e)}).finally(function(e){console.log("cleaning up after after-refresh-cleanup"),a.close(),i.resolve("Update finished!"),f()})):t(d,c)},function(e){console.log("failed to get /refresh_status; trying again.",e),t(d,c)})},g=function(t,n){return i=r.defer(),u=t,n?a?(i.reject("there's already an update modal up."),i.promise):(a=e.open({templateUrl:"update/update-progress.tpl.html",controller:"updateProgressModalCtrl",backdrop:"static",keyboard:!1}),d(),i.promise):(i.reject("Everything is already up to date."),i.promise)};return{showUpdateModal:g,status:s,getPercentComplete:function(){return s.percent_complete},getNumComplete:function(){return s.num_complete},getNumUpdating:function(){return s.num_refreshing},isCrunching:function(){return s.isCrunching}}}).controller("updateProgressModalCtrl",function(e,t){e.status=t});
angular.module( 'update.update', [
'emguo.poller',
'resources.users'
Expand Down Expand Up @@ -4826,6 +4830,7 @@ angular.module('resources.products',['ngResource'])



angular.module("resources.users",["ngResource"]).factory("Users",function(e){return e("/user/:id?id_type=:idType",{idType:"userid"})}).factory("UsersProducts",function(e){return e("/user/:id/products?id_type=:idType&include_heading_products=:includeHeadingProducts",{idType:"url_slug",includeHeadingProducts:!1},{update:{method:"PUT"},patch:{method:"POST",headers:{"X-HTTP-METHOD-OVERRIDE":"PATCH"}},"delete":{method:"DELETE",headers:{"Content-Type":"application/json"}},query:{method:"GET",isArray:!0,cache:!0},poll:{method:"GET",isArray:!0,cache:!1}})}).factory("UsersProduct",function(e){return e("/user/:id/product/:tiid?id_type=:idType",{idType:"url_slug"},{update:{method:"PUT"}})}).factory("UsersAbout",function(e){return e("/user/:id/about?id_type=:idType",{idType:"url_slug"},{patch:{method:"POST",headers:{"X-HTTP-METHOD-OVERRIDE":"PATCH"},params:{id:"@about.id"}}})}).factory("UsersPassword",function(e){return e("/user/:id/password?id_type=:idType",{idType:"url_slug"})}).factory("UsersProductsCache",function(e){var t=[];return{query:function(){}}});
angular.module('resources.users',['ngResource'])

.factory('Users', function ($resource) {
Expand Down Expand Up @@ -6062,6 +6067,8 @@ angular.module("services.map", [
}
}
})
angular.module("services.pinboardService",["resources.users"]).factory("PinboardService",function(n,o){function t(n){return g[e(n)]}function e(n){return"product"==n[0]?"one":"two"}function r(n){console.log("pinning this id: ",n),t(n).push(n),i()}function i(t){var e=o.getCurrentUserSlug();return e?t&&l()?!1:void n.save({id:e},{contents:g},function(n){},function(n){}):!1}function u(o){console.log("calling ProfilePinboard.get("+o+")",g,a),a.url_slug=o,n.get({id:o},function(n){g.one=n.one,g.two=n.two},function(n){console.log("no pinboard set yet."),c()})}function c(){g.one=[],g.two=[];for(var n in a)a.hasOwnProperty(n)&&delete a[n]}function l(){return!g.one.length&&!g.two.length}function s(n){return console.log("unpin this!",n),g[e(n)]=_.filter(t(n),function(o){return!_.isEqual(n,o)}),i(),!0}function f(n){return!!_.find(t(n),function(o){return _.isEqual(n,o)})}var a={},g={one:[],two:[]};return{cols:g,pin:r,unPin:s,isPinned:f,get:u,saveState:i,getUrlSlug:function(){return a.url_slug},clear:c}});
angular.module("services.profileService",["resources.users"]).factory("ProfileService",function(e,r,n,t,o,u,c,i,s,d,a,l,f){function g(e){d.query({id:e,stubs:!0},function(e){F.products=e},function(e){console.log("stubs call failed",e)})}function p(e){return F.products||g(e),C=!0,l.createResource().get({id:e,embedded:!1},function(r){console.log("ProfileService got a response",r),_.each(F,function(e,r){delete F[r]}),angular.extend(F,r),C=!1,n.showUpdateModal(e,r.is_refreshing).then(function(r){console.log("updater (resolved):",r),p(e,!0)},function(e){})},function(e){console.log("ProfileService got a failure response",e),404==e.status&&(F.is404=!0),C=!1}).$promise}function v(e){return e.length?(_.each(e,function(e){var r=P(e);F.products.splice(r,1)}),t.setStr("Deleted "+e.length+" items.","success"),void d.delete({id:F.about.url_slug,tiids:e.join(",")},function(r){console.log("finished deleting",e),p(F.about.url_slug,!0)})):!1}function h(){return F.products?F.products[0]&&F.products[0].metrics?!0:void 0:!1}function m(e,r){return e.length?(_.each(e,function(e){var n=y(e);n&&(n.genre=r)}),t.setStr("Moved "+e.length+" items to "+s.get(r,"plural_name")+".","success"),void a.patch({commaSeparatedTiids:e.join(",")},{genre:r},function(e){console.log("ProfileService.changeProductsGenre() successful.",e),p(F.about.url_slug,!0)},function(e){console.log("ProfileService.changeProductsGenre() FAILED.",e)})):!1}function P(e){for(var r=0;r<F.products.length;r++)if(F.products[r].tiid==e)return r;return-1}function y(e){var r=P(e);return r>-1?F.products[r]:null}function S(){return C}function b(e,r){if("undefined"==typeof F.genres)return[];var n,t=_.findWhere(F.genres,{name:e});if("undefined"==typeof t)return[];var o=_.sortBy(t.cards,"sort_by"),n=o.concat([]).reverse();return n.slice(0,r).reverse()}function G(e){if("undefined"==typeof F.genres)return void 0;var r=_.findWhere(F.genres,{url_representation:e});return r}function W(e){if("undefined"==typeof F.products)return void 0;var r=_.where(F.products,{genre:e});return r}function B(){var e=_.countBy(F.products,function(e){return e.genre});return e}function R(e){return _.findWhere(F.products,{tiid:e})}function w(){for(var e in F)F.hasOwnProperty(e)&&delete F[e]}function x(e){return console.log("calling getAccountProducts"),"undefined"==typeof F.account_products?void 0:(console.log("account_products",F.account_products),_.findWhere(F.account_products,{index_name:e}))}function A(e){if(!F.genres)return!1;var r=[];_.each(F.genres,function(e){r.push(e.cards)});var n=_.flatten(r),t=_.findWhere(n,{genre_card_address:e});if(!t)return!1;var o=_.findWhere(F.genres,{name:t.genre}),u={genre_num_products:o.num_products,genre_icon:o.icon,genre_plural_name:o.plural_name,genre_url_representation:o.url_representation};return _.extend(t,u)}var C=!0,F={};return{data:F,loading:C,isLoading:S,get:p,productsByGenre:W,genreCards:b,productByTiid:R,removeProducts:v,changeProductsGenre:m,getAccountProduct:x,getFromPinId:A,getGenreCounts:B,hasFullProducts:h,clear:w,getUrlSlug:function(){return F&&F.about?F.about.url_slug:void 0}}}).factory("SelfCancellingProfileResource",["$resource","$q",function(e,r){var n=r.defer(),t=function(){n.resolve(),n=r.defer()},o=function(){return t(),e("/profile/:id",{},{get:{method:"GET",timeout:n.promise}})};return{createResource:o,cancelResource:t}}]);
angular.module("services.ourSortService", [])

.factory("OurSortService", function($location){
Expand Down Expand Up @@ -6104,6 +6111,7 @@ angular.module("services.ourSortService", [])

}
});
angular.module("services.page",["signup"]);angular.module("services.page").factory("Page",function(e,t){var n="",r="header",i="right",s={},o=_(e.path()).startsWith("/embed/"),u={header:"",footer:""},a=function(e){return e?e+".tpl.html":""},f={signup:"signup/signup-header.tpl.html"};return{setTemplates:function(e,t){u.header=a(e);u.footer=a(t)},getTemplate:function(e){return u[e]},setNotificationsLoc:function(e){r=e},showNotificationsIn:function(e){return r==e},getBodyClasses:function(){return{"show-tab-on-bottom":i=="bottom","show-tab-on-right":i=="right",embedded:o}},getBaseUrl:function(){return"http://"+window.location.host},isEmbedded:function(){return o},setUservoiceTabLoc:function(e){i=e},getTitle:function(){return n},setTitle:function(e){n="ImpactStory: "+e},isLandingPage:function(){return e.path()=="/"},setLastScrollPosition:function(e,t){e&&(s[t]=e)},getLastScrollPosition:function(e){return s[e]}}});
angular.module("services.page", [
'signup'
])
Expand Down Expand Up @@ -8835,19 +8843,7 @@ angular.module("infopages/metrics.tpl.html", []).run(["$templateCache", function
" <p class=\"intro\">\n" +
" Our goal is to uncover and share every of impact from every research product of every scientist.\n" +
" We're not there yet, of course, but we are adding new metrics all the time.\n" +
" Here's a snapshot of the impact metrics we're gathering right now. Got an idea for another\n" +
" measure of impact that you'd like to see here? Great,\n" +
" <a class=\"help control\"\n" +
" href=\"javascript:void(0)\"\n" +
" data-uv-lightbox=\"classic_widget\"\n" +
" data-uv-trigger\n" +
" data-uv-mode=\"full\"\n" +
" data-uv-primary-color=\"#cc6d00\"\n" +
" data-uv-link-color=\"#007dbf\"\n" +
" data-uv-default-mode=\"support\"\n" +
" data-uv-forum-id=\"166950\">\n" +
" we'd love to hear from you!\n" +
" </a>\n" +
" Here's a snapshot of the impact metrics we're gathering right now.\n" +
" </p>\n" +
"\n" +
" <ul id=\"providers-metadata\">\n" +
Expand Down
12 changes: 0 additions & 12 deletions totalimpactwebapp/static/rendered-pages/index.html
Expand Up @@ -136,12 +136,6 @@ <h2>but hang tight, we'll be back soon.</h2>
-->
</div>

<a class="help control" href="javascript:void(0)" data-uv-lightbox="classic_widget" data-uv-mode="full" data-uv-primary-color="#cc6d00" data-uv-link-color="#007dbf" data-uv-default-mode="support" data-uv-forum-id="166950" data-uv-scanned="true" id="uv-1">
<span class="tip">Get help</span>
<span class="icon-container">
<i class="icon-question"></i>
</span>
</a>
</div>
</div>

Expand Down Expand Up @@ -412,12 +406,6 @@ <h3>Community</h3>
<div id="footer-help" class="footer-col">
<h3>Help</h3>
<ul>
<li><a href="http://feedback.impactstory.org" target="_blank">Suggestions</a></li>
<li>
<a class="help control" href="javascript:void(0)" data-uv-lightbox="classic_widget" data-uv-trigger="" data-uv-mode="full" data-uv-primary-color="#cc6d00" data-uv-link-color="#007dbf" data-uv-default-mode="support" data-uv-forum-id="166950" data-uv-scanned="true" id="uv-3">
Report bug
</a>
</li>
<li><a href="/faq">FAQ</a></li>
<li><a href="/CarlBoettiger">Example profile</a></li>
</ul>
Expand Down
14 changes: 1 addition & 13 deletions totalimpactwebapp/static/src/app/infopages/metrics.tpl.html
Expand Up @@ -4,19 +4,7 @@ <h2 class="infopage-heading">Our metrics</h2>
<p class="intro">
Our goal is to uncover and share every of impact from every research product of every scientist.
We're not there yet, of course, but we are adding new metrics all the time.
Here's a snapshot of the impact metrics we're gathering right now. Got an idea for another
measure of impact that you'd like to see here? Great,
<a class="help control"
href="javascript:void(0)"
data-uv-lightbox="classic_widget"
data-uv-trigger
data-uv-mode="full"
data-uv-primary-color="#cc6d00"
data-uv-link-color="#007dbf"
data-uv-default-mode="support"
data-uv-forum-id="166950">
we'd love to hear from you!
</a>
Here's a snapshot of the impact metrics we're gathering right now.
</p>

<ul id="providers-metadata">
Expand Down

0 comments on commit 4327b18

Please sign in to comment.