@@ -130,18 +130,16 @@ export default class ProfileHeader extends React.Component { | |||
<i className="icon-dropdown"/> | |||
</button> | |||
<ul className="dropdown-menu dropdown-menu-right"> | |||
<li> | |||
<Link | |||
to={{ pathname: '/compare', query: { key: profile.key } }} | |||
id="quality-profile-compare"> | |||
{translate('compare')} | |||
</Link> | |||
</li> | |||
<li> | |||
<a href={activateMoreUrl}> | |||
{translate('quality_profiles.activate_more_rules')} | |||
</a> | |||
</li> | |||
<li> | |||
<a id="quality-profile-backup" href={backupUrl}> | |||
{translate('backup_verb')} | |||
</a> | |||
</li> | |||
<li> | |||
<Link | |||
to={{ pathname: '/compare', query: { key: profile.key } }} | |||
@@ -149,26 +147,21 @@ export default class ProfileHeader extends React.Component { | |||
{translate('compare')} | |||
</Link> | |||
</li> | |||
<li> | |||
<a id="quality-profile-backup" href={backupUrl}> | |||
{translate('backup_verb')} | |||
</a> | |||
</li> | |||
{canAdmin && ( | |||
<li> | |||
<a id="quality-profile-rename" | |||
<a id="quality-profile-copy" | |||
href="#" | |||
onClick={this.handleRenameClick.bind(this)}> | |||
{translate('rename')} | |||
onClick={this.handleCopyClick.bind(this)}> | |||
{translate('copy')} | |||
</a> | |||
</li> | |||
)} | |||
{canAdmin && ( | |||
<li> | |||
<a id="quality-profile-copy" | |||
<a id="quality-profile-rename" | |||
href="#" | |||
onClick={this.handleCopyClick.bind(this)}> | |||
{translate('copy')} | |||
onClick={this.handleRenameClick.bind(this)}> | |||
{translate('rename')} | |||
</a> | |||
</li> | |||
)} |
@@ -75,7 +75,7 @@ export default class ProfileProjects extends React.Component { | |||
e.target.blur(); | |||
new ChangeProjectsView({ | |||
profile: this.props.profile, | |||
loadProjects: this.loadProjects | |||
loadProjects: this.props.updateProfiles | |||
}).render(); | |||
} | |||
@@ -18,7 +18,7 @@ | |||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
*/ | |||
import React from 'react'; | |||
import { PropTypes as RouterPropTypes } from 'react-router'; | |||
import { Link, PropTypes as RouterPropTypes } from 'react-router'; | |||
import groupBy from 'lodash/groupBy'; | |||
import pick from 'lodash/pick'; | |||
import sortBy from 'lodash/sortBy'; | |||
@@ -56,13 +56,16 @@ export default class ProfilesList extends React.Component { | |||
<thead> | |||
<tr> | |||
<th> | |||
{language.name} | |||
{' ('} | |||
<Link | |||
to={{ pathname: '/', query: { language: language.key } }} | |||
className="link-base-color"> | |||
{language.name} | |||
</Link> | |||
{', '} | |||
{translateWithParameters( | |||
'quality_profiles.x_profiles', | |||
profilesCount | |||
)} | |||
{')'} | |||
{this.props.canAdmin && ( | |||
<button | |||
className="huge-spacer-left js-restore-built-in" |
@@ -1787,6 +1787,7 @@ quality_profiles.deprecated_rules=Deprecated Rules | |||
quality_profiles.x_deprecated_rules_are_still_activated={0} deprecated rule(s) are still activated on {1} quality profile(s): | |||
quality_profiles.stagnant_profiles=Stagnant Profiles | |||
quality_profiles.not_updated_more_than_year=The following profiles haven't been updated for more than 1 year: | |||
quality_profiles.exporters=Exporters | |||