Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
33c59a5b
Commit
33c59a5b
authored
Sep 18, 2016
by
Jason Song
Committed by
GitHub
Sep 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #411 from lepdou/logo
text model can copy config
parents
b264b490
6d6a617d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
config.html
apollo-portal/src/main/resources/static/config.html
+1
-1
copy.png
apollo-portal/src/main/resources/static/img/copy.png
+0
-0
ConfigNamespaceController.js
...ic/scripts/controller/config/ConfigNamespaceController.js
+2
-1
namespace-panel.html
...ain/resources/static/views/component/namespace-panel.html
+7
-0
No files found.
apollo-portal/src/main/resources/static/config.html
View file @
33c59a5b
...
...
@@ -154,7 +154,7 @@
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
<button
class=
"btn close"
data-clipboard-text=
"{{text}}"
data-tooltip=
"tooltip"
<button
class=
"btn close
clipboard
"
data-clipboard-text=
"{{text}}"
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"复制"
>
<img
class=
"i-20"
src=
"img/clippy.svg"
style=
"margin-right: 5px;margin-top: -2px;"
>
</button>
...
...
apollo-portal/src/main/resources/static/img/copy.png
0 → 100644
View file @
33c59a5b
3.88 KB
apollo-portal/src/main/resources/static/scripts/controller/config/ConfigNamespaceController.js
View file @
33c59a5b
...
...
@@ -385,6 +385,7 @@ application_module.controller("ConfigNamespaceController",
}
$
(
'.config-item-container'
).
removeClass
(
'hide'
);
new
Clipboard
(
'.btn'
);
new
Clipboard
(
'.clipboard'
);
}]);
apollo-portal/src/main/resources/static/views/component/namespace-panel.html
View file @
33c59a5b
...
...
@@ -94,6 +94,13 @@
</ul>
</div>
<div
class=
"col-md-4 text-right"
>
<a
class=
"clipboard"
data-clipboard-text=
"{{namespace.text}}"
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"复制文本"
ng-show=
"!namespace.isTextEditing && namespace.viewType == 'text' && namespace.hasModifyPermission"
>
<img
src=
"img/copy.png"
class=
"ns_btn"
>
</a>
<a
data-tooltip=
"tooltip"
data-placement=
"bottom"
title=
"取消修改"
ng-show=
"namespace.isTextEditing && namespace.viewType == 'text'"
ng-click=
"toggleTextEditStatus(namespace)"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment