Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
condenser
Commits
6ee88396
Commit
6ee88396
authored
8 years ago
by
bitcoiner
Committed by
Tim Fesenko
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Indicator for External Witness URLs (#477)
Show external link icon as appropriate on witness list; add space
parent
28c2952c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/components/pages/Witnesses.jsx
+7
-2
7 additions, 2 deletions
app/components/pages/Witnesses.jsx
with
7 additions
and
2 deletions
app/components/pages/Witnesses.jsx
+
7
−
2
View file @
6ee88396
import
React
,
{
PropTypes
}
from
'
react
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
Link
}
from
'
react-router
'
;
import
links
from
'
app/utils/Links
'
import
Icon
from
'
app/components/elements/Icon
'
;
import
transaction
from
'
app/redux/Transaction
'
import
ByteBuffer
from
'
bytebuffer
'
...
...
@@ -50,7 +51,11 @@ class Witnesses extends React.Component {
(
myVote
===
true
?
'
Voting__button--upvoted
'
:
''
);
let
witness_thread
=
""
if
(
thread
)
{
witness_thread
=
<
Link
to
=
{
thread
}
>
witness thread
</
Link
>
if
(
links
.
remote
.
test
(
thread
))
{
witness_thread
=
<
Link
to
=
{
thread
}
>
witness thread
<
Icon
name
=
"extlink"
/></
Link
>
}
else
{
witness_thread
=
<
Link
to
=
{
thread
}
>
witness thread
</
Link
>
}
}
return
(
<
tr
key
=
{
owner
}
>
...
...
@@ -102,7 +107,7 @@ class Witnesses extends React.Component {
<
h2
>
Top Witnesses
</
h2
>
<
p
>
<
strong
>
You have
{
witness_votes_count
}
votes remaining.
</
strong
>
You can vote for a maximum of 30 witnesses.
You can vote for a maximum of 30 witnesses.
</
p
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment