プロジェクト

全般

プロフィール

Vote #75174

未完了

Add _blank support for "Link values to URL"

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Custom fields_14
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
14
version_id:
0
issue_org_id:
16717
author_id:
574
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
2
plus1:
3
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I would be great to have one more controll in definition of custom fields new feature - "Link values to URL".
Plz just add checkbox: [x] Open links in a new window
So links will open with "_blank".

ANyway, great work with custom fields, thanx!


journals

Maxim Krušina wrote:
> I would be great to have one more controll in definition of custom fields new feature - "Link values to URL".
> Plz just add checkbox: [x] Open links in a new window
> So links will open with "_blank".
>
> ANyway, great work with custom fields, thanx!

It will be really nice!
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Hello! Ceccarelli, Akkas, Nicolet, and Krušina:

I just saw the Lefko Media page and I remembered this post. (https://lefkomedia.com/adding-external-link-indicator-with-css/)

After a couple of years in other projects, now I have to go back to work with Redmine.

bq. For me, it's always a pleasure 'to play' Redmine again!
(Really, Thank you very much Mr. Lang !!).

Well, press *F12* keyboard key and view on your browser-debugger the class assigned to div.
* For my installation, the Custom-Fields corresponds to cf_55, this is custom_field 55..
* Look what topic you have activated in Redmine. (admins screens..).
* And then from console (putty o whatever..) inserted into file of its corresponding directory ../public/theme/NAMEofTheme/stylesheets/application.css the following code at the end thereof: (*altering the number of* your custom field: Of course).

And ready !

<pre><code class="css">
div.cf_55.attribute div.value a:after {
color: red;
content: url(/images/link.png);
margin: 0 3px 0 5px;
}
</code></pre>

If you have FontAwesome, then:

<pre><code class="css">
div.cf_55.attribute div.value a:after {
color: red;
font-family: 'FontAwesome';
content: " \f08e";
margin: 0 3px 0 5px;
}
</code></pre>

* To open in a new window, to press Ctrl + Mouse Click on the link and, thus, will not be necessary to alter the core file views / issues / index.html.erb following the techniques proposed by Anton Argirov in the topic: http://www.redmine.org/boards/3/topics/33949

Enjoy !
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリCustom fields_14 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0