review changes
This commit is contained in:
parent
61eac509de
commit
29bf2a23e8
8 changed files with 21 additions and 13 deletions
Binary file not shown.
Before Width: | Height: | Size: 543 B |
|
@ -1914,14 +1914,10 @@ input.collaboratorSearchField {
|
||||||
background-position: -32px 0;
|
background-position: -32px 0;
|
||||||
}
|
}
|
||||||
.yourMap .mapPermission:hover {
|
.yourMap .mapPermission:hover {
|
||||||
background-image: url(<%= asset_data_uri('arrowperms_sprite.png') %>);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-position: -32px 0;
|
|
||||||
}
|
}
|
||||||
.yourMap .mapPermission.minimize {
|
.yourMap .mapPermission.minimize {
|
||||||
background-image: url(<%= asset_data_uri('arrowperms_sprite.png') %>) !important;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-position: 0 0;
|
|
||||||
}
|
}
|
||||||
.mapInfoBox .mapPermission .permissionSelect {
|
.mapInfoBox .mapPermission .permissionSelect {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</script>
|
</script>
|
||||||
<%= render :partial => 'layouts/lightboxes' %>
|
<%= render :partial => 'layouts/lightboxes' %>
|
||||||
<%= render :partial => 'layouts/templates' %>
|
<%= render :partial => 'layouts/templates' %>
|
||||||
<%= render :partial => 'shared/metacodeBgColors' %>
|
<%= render :partial => 'shared/metacodeCssColors' %>
|
||||||
<%= render :partial => 'layouts/googleanalytics' if ENV["GA_TRACKING_CODE"].present? %>
|
<%= render :partial => 'layouts/googleanalytics' if ENV["GA_TRACKING_CODE"].present? %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<style>
|
<style>
|
||||||
|
<% # give text the color of the metacode by adding the class .metacodeColor{metacode-id} %>
|
||||||
<% Metacode.all.each do |m| %>
|
<% Metacode.all.each do |m| %>
|
||||||
<% if m.color %>
|
<% if m.color %>
|
||||||
<%= ".mbg" + m.id.to_s + "{" %>
|
<%= ".metacodeColor" + m.id.to_s + "{" %>
|
||||||
<%= "color:" + m.color + " !important;" %>
|
<%= "color:" + m.color + " !important;" %>
|
||||||
<%= "}" %>
|
<%= "}" %>
|
||||||
<% end %>
|
<% end %>
|
|
@ -4,8 +4,18 @@ import PropTypes from 'prop-types'
|
||||||
class Follow extends Component {
|
class Follow extends Component {
|
||||||
render = () => {
|
render = () => {
|
||||||
const { ActiveMapper, isFollowing, onTopicFollow } = this.props
|
const { ActiveMapper, isFollowing, onTopicFollow } = this.props
|
||||||
return <div className='topicFollow' onClick={() => ActiveMapper && onTopicFollow()}>
|
function onClick () {
|
||||||
{ActiveMapper ? isFollowing ? 'Unfollow' : 'Follow' : ''}
|
if (ActiveMapper) {
|
||||||
|
onTopicFollow()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let innerValue
|
||||||
|
// only display either option if there is a user signed in
|
||||||
|
if (ActiveMapper) {
|
||||||
|
innerValue = isFollowing ? 'Unfollow' : 'Follow'
|
||||||
|
}
|
||||||
|
return <div className='topicFollow' onClick={onClick}>
|
||||||
|
{innerValue}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* global $ */
|
/* global $ */
|
||||||
|
|
||||||
import React, { PropTypes, Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
|
|
||||||
class Info extends Component {
|
class Info extends Component {
|
||||||
|
|
|
@ -40,7 +40,7 @@ class Links extends Component {
|
||||||
return (
|
return (
|
||||||
<div className="links">
|
<div className="links">
|
||||||
<div className="linkItem icon metacodeItem">
|
<div className="linkItem icon metacodeItem">
|
||||||
<div className={`metacodeTitle mbg${metacode.get('id')}`}
|
<div className={`metacodeTitle metacodeColor${metacode.get('id')}`}
|
||||||
onClick={() => authorizedToEdit && this.handleMetacodeBarClick()}
|
onClick={() => authorizedToEdit && this.handleMetacodeBarClick()}
|
||||||
>
|
>
|
||||||
{metacode.get('name')}
|
{metacode.get('name')}
|
||||||
|
|
|
@ -29,8 +29,8 @@ class ReactTopicCard extends Component {
|
||||||
if (topic.authorizePermissionChange(currentUser)) classname += ' yourTopic'
|
if (topic.authorizePermissionChange(currentUser)) classname += ' yourTopic'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Draggable handle=".metacodeImage" defaultPosition={{x: 100, y: 100}}>
|
<Draggable handle='.metacodeImage' defaultPosition={{x: 100, y: 100}}>
|
||||||
<div className="showcard mapElement mapElementHidden">
|
<div className='showcard mapElement mapElementHidden'>
|
||||||
<div className={classname}>
|
<div className={classname}>
|
||||||
<div className={`CardOnGraph ${hasAttachment ? 'hasAttachment' : ''}`} id={`topic_${topic.id}`}>
|
<div className={`CardOnGraph ${hasAttachment ? 'hasAttachment' : ''}`} id={`topic_${topic.id}`}>
|
||||||
<Links topic={topic}
|
<Links topic={topic}
|
||||||
|
@ -53,7 +53,7 @@ class ReactTopicCard extends Component {
|
||||||
updateTopic={wrappedUpdateTopic}
|
updateTopic={wrappedUpdateTopic}
|
||||||
/>
|
/>
|
||||||
<Info topic={topic} />
|
<Info topic={topic} />
|
||||||
<div className="clearfloat"></div>
|
<div className='clearfloat' />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue