|
8 | 8 | </noscript> |
9 | 9 | <div class="panel"> |
10 | 10 | <div class="inner"> |
11 | | - <dl class="left-box details idea-panel"> |
12 | | - {% if S_IS_MOD %}<dt class="idealabel">{{ lang('IDEA_ID') ~ lang('COLON') }}</dt> <dd>{{ IDEA_ID }}</dd>{% endif %} |
13 | | - <dt class="idealabel">{{ lang('AUTHOR') ~ lang('COLON') }}</dt> <dd><strong>{{ IDEA_AUTHOR }}</strong></dd> |
14 | | - <dt class="idealabel">{{ lang('POSTED') ~ lang('COLON') }}</dt> <dd>{{ IDEA_DATE }}</dd> |
15 | | - <dt class="idealabel">{{ lang('RATING') ~ lang('COLON') }}</dt> |
16 | | - <dd> |
| 11 | + <div class="idea-panel flex-box flex-wrap"> |
| 12 | + <div class="idea-panel-inner flex-grow"> |
| 13 | + <h3>{{ lang('VOTES') }}</h3> |
17 | 14 | <div class="rating"> |
18 | 15 | <a {% if S_CAN_VOTE %}href="{{ U_IDEA_VOTE }}"{% endif %} class="minivote vote-up{{ not S_CAN_VOTE_UP ? ' vote-disabled' }}" title="{{ lang('VOTE_UP') }}" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('VOTE_ERROR') ~ lang('COLON') }}"><i class="icon fa-check-circle user-voted{{ not S_VOTED_UP ? ' hidden' }}" aria-hidden="true"></i><i class="icon fa-thumbs-up"></i><span class="vote-count">{{ IDEA_VOTES_UP }}</span></a> |
19 | 16 | <a {% if S_CAN_VOTE %}href="{{ U_IDEA_VOTE }}"{% endif %} class="minivote vote-down{{ not S_CAN_VOTE_DOWN ? ' vote-disabled' }}" title="{{ lang('VOTE_DOWN') }}" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('VOTE_ERROR') ~ lang('COLON') }}"><i class="icon fa-check-circle user-voted{{ not S_VOTED_DOWN ? ' hidden' }}" aria-hidden="true"></i><i class="icon fa-thumbs-down"></i><span class="vote-count">{{ IDEA_VOTES_DOWN }}</span></a> |
|
45 | 42 | {% endif %} |
46 | 43 | </ul> |
47 | 44 | </div> |
48 | | - </dd> |
49 | | - <dt class="idealabel">{{ lang('STATUS') ~ lang('COLON') }}</dt> |
50 | | - <dd class="status-dropdown-container dropdown-container dropdown-{S_CONTENT_FLOW_END}"> |
51 | | - <span class="status-badge status-{{ IDEA_STATUS_ID }}"> |
52 | | - <a href="{{ U_IDEA_STATUS_LINK }}" id="status-link"><i class="icon fa-fw {{ ideas_status_icon(IDEA_STATUS_ID) }}"></i>{{ IDEA_STATUS_NAME }}</a> |
| 45 | + </div> |
| 46 | + <div class="idea-panel-inner flex-grow"> |
| 47 | + <h3>{{ lang('STATUS') }}</h3> |
| 48 | + <div class="status-dropdown-container dropdown-container dropdown-{S_CONTENT_FLOW_END}"> |
| 49 | + <span class="status-badge status-{{ IDEA_STATUS_ID }}"> |
| 50 | + <a href="{{ U_IDEA_STATUS_LINK }}" id="status-link"><i class="icon fa-fw {{ ideas_status_icon(IDEA_STATUS_ID) }}"></i>{{ IDEA_STATUS_NAME }}</a> |
| 51 | + {% if STATUS_ARY %} |
| 52 | + <a href="#" class="dropdown-trigger"><i class="icon fa-fw fa-caret-down"></i></a> |
| 53 | + {% endif %} |
| 54 | + </span> |
53 | 55 | {% if STATUS_ARY %} |
54 | | - <a href="#" class="dropdown-trigger"><i class="icon fa-fw fa-caret-down"></i></a> |
| 56 | + <div class="status-dropdown dropdown"> |
| 57 | + <div class="pointer"><div class="pointer-inner"></div></div> |
| 58 | + <ul class="dropdown-contents"> |
| 59 | + {% for status, id in STATUS_ARY %} |
| 60 | + <li> |
| 61 | + <a href="{{ U_CHANGE_STATUS }}" data-status="{{ id }}" class="change-status"><i class="icon fa-fw {{ ideas_status_icon(id) }}"></i>{{ lang(status) }}</a> |
| 62 | + </li> |
| 63 | + {% endfor %} |
| 64 | + </ul> |
| 65 | + </div> |
55 | 66 | {% endif %} |
56 | | - </span> |
57 | | - {% if STATUS_ARY %} |
58 | | - <div class="status-dropdown dropdown"> |
59 | | - <div class="pointer"><div class="pointer-inner"></div></div> |
60 | | - <ul class="dropdown-contents"> |
61 | | - {% for status, id in STATUS_ARY %} |
62 | | - <li> |
63 | | - <a href="{{ U_CHANGE_STATUS }}" data-status="{{ id }}" class="change-status"><i class="icon fa-fw {{ ideas_status_icon(id) }}"></i>{{ lang(status) }}</a> |
64 | | - </li> |
65 | | - {% endfor %} |
66 | | - </ul> |
| 67 | + </div> |
| 68 | + {% if IDEA_RFC %} |
| 69 | + <div class="status-item flex-box flex-align-end"> |
| 70 | + {{ lang('RFC') ~ lang('COLON') }} |
| 71 | + <a id="rfclink" href="{{ IDEA_RFC }}" style="{% if not IDEA_RFC %}display:none;{% endif %}overflow:hidden;text-overflow:ellipsis;white-space:nowrap;{% if S_CAN_EDIT %}max-width:75%;{% endif %}">{{ lang('RFC_LINK_TEXT') }}</a> |
| 72 | + {% if S_CAN_EDIT %} |
| 73 | + <a href="{{ U_EDIT_RFC }}" id="rfcedit" data-l-add="{{ lang('ADD') }}" data-l-edit="{{ lang('EDIT') }}">{% if IDEA_RFC %}<i class="icon fa-fw fa-pencil"></i>{{ lang('EDIT') }}{% else %}<i class="icon fa-fw fa-plus-circle"></i>{{ lang('ADD') }}{% endif %}</a> |
| 74 | + <input type="text" id="rfceditinput" class="ideainput" value="{{ IDEA_RFC }}" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('RFC_ERROR') }}" /> |
| 75 | + {% endif %} |
67 | 76 | </div> |
68 | 77 | {% endif %} |
69 | | - </dd> |
70 | | - {% if IDEA_RFC %} |
71 | | - <dt class="idealabel">{{ lang('RFC') ~ lang('COLON') }}</dt> |
72 | | - <dd> |
73 | | - <a id="rfclink" href="{{ IDEA_RFC }}"{% if not IDEA_RFC %} style="display:none"{% endif %}>{{ IDEA_RFC }}</a> |
74 | | - {% if S_CAN_EDIT %} |
75 | | - <a href="{{ U_EDIT_RFC }}" id="rfcedit" data-l-add="{{ lang('ADD') }}" data-l-edit="{{ lang('EDIT') }}">{% if IDEA_RFC %}<i class="icon fa-fw fa-pencil"></i>{{ lang('EDIT') }}{% else %}<i class="icon fa-fw fa-plus-circle"></i>{{ lang('ADD') }}{% endif %}</a> |
76 | | - <input type="text" id="rfceditinput" class="ideainput" value="{{ IDEA_RFC }}" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('RFC_ERROR') }}" /> |
77 | | - {% endif %} |
78 | | - </dd> |
79 | | - {% endif %} |
80 | | - {% if IDEA_TICKET or S_CAN_EDIT %} |
81 | | - <dt class="idealabel">{{ lang('TICKET') ~ lang('COLON') }}</dt> |
82 | | - <dd> |
83 | | - <a id="ticketlink" {% if IDEA_TICKET %}href="https://tracker.phpbb.com/browse/PHPBB3-{{ IDEA_TICKET }}">PHPBB3-{{ IDEA_TICKET }}{% else %}style="display:none">{% endif %}</a> |
84 | | - {% if S_CAN_EDIT %} |
85 | | - <a href="{{ U_EDIT_TICKET }}" id="ticketedit" data-l-add="{{ lang('ADD') }}" data-l-edit="{{ lang('EDIT') }}">{% if IDEA_TICKET %}<i class="icon fa-fw fa-pencil"></i>{{ lang('EDIT') }}{% else %}<i class="icon fa-fw fa-plus-circle"></i>{{ lang('ADD') }}{% endif %}</a> |
86 | | - <input type="text" id="ticketeditinput" class="ideainput"{% if IDEA_TICKET %} value="PHPBB3-{{ IDEA_TICKET }}"{% endif %} placeholder="PHPBB3-#####" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('TICKET_ERROR') }}" /> |
87 | | - {% endif %} |
88 | | - </dd> |
89 | | - {% endif %} |
90 | | - {% if IDEA_DUPLICATE or S_IS_MOD %} |
91 | | - <dt class="duplicatetoggle idealabel"{% if IDEA_STATUS_ID != STATUS_ARY.DUPLICATE %} style="display:none"{% endif %}>{{ lang('DUPLICATE') ~ lang('COLON') }}</dt> |
92 | | - <dd class="duplicatetoggle" {% if IDEA_STATUS_ID != STATUS_ARY.DUPLICATE %}style="display:none"{% endif %}> |
93 | | - <a id="duplicatelink" data-link="{{ U_IDEA_DUPLICATE }}" {% if IDEA_DUPLICATE %}href="{{ U_IDEA_DUPLICATE }}">{{ IDEA_DUPLICATE }}{% else %}style="display:none">{% endif %}</a> |
94 | | - {% if S_IS_MOD %} |
95 | | - <a href="{{ U_EDIT_DUPLICATE }}" id="duplicateedit" data-l-add="{{ lang('ADD') }}" data-l-edit="{{ lang('EDIT') }}">{% if IDEA_DUPLICATE %}<i class="icon fa-fw fa-pencil"></i>{{ lang('EDIT') }}{% else %}<i class="icon fa-fw fa-plus-circle"></i>{{ lang('ADD') }}{% endif %}</a> |
96 | | - <div class="dropdown-container dropdown-{{ S_CONTENT_FLOW_END }}"> |
97 | | - <input |
98 | | - type="text" |
99 | | - name="duplicateeditinput" |
100 | | - id="duplicateeditinput" |
101 | | - value="{{ IDEA_DUPLICATE ? IDEA_DUPLICATE }}" |
102 | | - placeholder="{{ lang('DUPLICATE_PLACEHOLDER') }}" |
103 | | - class="ideainput" |
104 | | - autocomplete="off" |
105 | | - data-filter="phpbb.search.filter" |
106 | | - data-ajax="idea_search" |
107 | | - data-min-length="3" |
108 | | - data-url="{{ U_TITLE_LIVESEARCH }}" |
109 | | - data-results="#live-search" |
110 | | - data-l-err="{{ lang('ERROR') }}" |
111 | | - data-l-msg="{{ lang('TICKET_ERROR_DUP') }}" |
112 | | - /> |
113 | | - <div class="dropdown live-search hidden" id="live-search"> |
114 | | - <div class="pointer"><div class="pointer-inner"></div></div> |
115 | | - <ul class="dropdown-contents search-results"> |
116 | | - <li class="search-result-tpl"><span class="search-result"></span></li> |
117 | | - </ul> |
| 78 | + {% if IDEA_TICKET or S_CAN_EDIT %} |
| 79 | + <div class="status-item flex-box flex-align-end"> |
| 80 | + {{ lang('TICKET') ~ lang('COLON') }} |
| 81 | + <a id="ticketlink" {% if IDEA_TICKET %}href="https://tracker.phpbb.com/browse/PHPBB3-{{ IDEA_TICKET }}">PHPBB3-{{ IDEA_TICKET }}{% else %}style="display:none">{% endif %}</a> |
| 82 | + {% if S_CAN_EDIT %} |
| 83 | + <a href="{{ U_EDIT_TICKET }}" id="ticketedit" data-l-add="{{ lang('ADD') }}" data-l-edit="{{ lang('EDIT') }}">{% if IDEA_TICKET %}<i class="icon fa-fw fa-pencil"></i>{{ lang('EDIT') }}{% else %}<i class="icon fa-fw fa-plus-circle"></i>{{ lang('ADD') }}{% endif %}</a> |
| 84 | + <input type="text" id="ticketeditinput" class="ideainput"{% if IDEA_TICKET %} value="PHPBB3-{{ IDEA_TICKET }}"{% endif %} placeholder="PHPBB3-#####" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('TICKET_ERROR') }}" /> |
| 85 | + {% endif %} |
| 86 | + </div> |
| 87 | + {% endif %} |
| 88 | + {% if IDEA_DUPLICATE or S_IS_MOD %} |
| 89 | + <div class="status-item flex-box flex-align-end duplicatetoggle" {% if IDEA_STATUS_ID != STATUS_ARY.DUPLICATE %}style="display:none"{% endif %}> |
| 90 | + {{ lang('DUPLICATE') ~ lang('COLON') }} |
| 91 | + <a id="duplicatelink" data-link="{{ U_IDEA_DUPLICATE }}" {% if IDEA_DUPLICATE %}href="{{ U_IDEA_DUPLICATE }}">{{ IDEA_DUPLICATE }}{% else %}style="display:none">{% endif %}</a> |
| 92 | + {% if S_IS_MOD %} |
| 93 | + <a href="{{ U_EDIT_DUPLICATE }}" id="duplicateedit" data-l-add="{{ lang('ADD') }}" data-l-edit="{{ lang('EDIT') }}">{% if IDEA_DUPLICATE %}<i class="icon fa-fw fa-pencil"></i>{{ lang('EDIT') }}{% else %}<i class="icon fa-fw fa-plus-circle"></i>{{ lang('ADD') }}{% endif %}</a> |
| 94 | + <div class="dropdown-container dropdown-{{ S_CONTENT_FLOW_END }}"> |
| 95 | + <input |
| 96 | + type="text" |
| 97 | + name="duplicateeditinput" |
| 98 | + id="duplicateeditinput" |
| 99 | + value="{{ IDEA_DUPLICATE ? IDEA_DUPLICATE }}" |
| 100 | + placeholder="{{ lang('DUPLICATE_PLACEHOLDER') }}" |
| 101 | + class="ideainput" |
| 102 | + autocomplete="off" |
| 103 | + data-filter="phpbb.search.filter" |
| 104 | + data-ajax="idea_search" |
| 105 | + data-min-length="3" |
| 106 | + data-url="{{ U_TITLE_LIVESEARCH }}" |
| 107 | + data-results="#live-search" |
| 108 | + data-l-err="{{ lang('ERROR') }}" |
| 109 | + data-l-msg="{{ lang('TICKET_ERROR_DUP') }}" |
| 110 | + /> |
| 111 | + <div class="dropdown live-search hidden" id="live-search"> |
| 112 | + <div class="pointer"><div class="pointer-inner"></div></div> |
| 113 | + <ul class="dropdown-contents search-results"> |
| 114 | + <li class="search-result-tpl"><span class="search-result"></span></li> |
| 115 | + </ul> |
| 116 | + </div> |
118 | 117 | </div> |
119 | | - </div> |
120 | | - {% endif %} |
121 | | - </dd> |
122 | | - {% endif %} |
123 | | - {% if IDEA_IMPLEMENTED or S_IS_MOD %} |
124 | | - <dt class="implementedtoggle idealabel"{% if IDEA_STATUS_ID != STATUS_ARY.IMPLEMENTED %} style="display:none"{% endif %}>{{ lang('IMPLEMENTED_VERSION') ~ lang('COLON') }}</dt> |
125 | | - <dd class="implementedtoggle" {% if IDEA_STATUS_ID != STATUS_ARY.IMPLEMENTED %}style="display:none"{% endif %}> |
126 | | - <span id="implementedversion"{% if not IDEA_IMPLEMENTED %} style="display:none;"{% endif %}>{{ IDEA_IMPLEMENTED }}</span> |
127 | | - {% if S_IS_MOD %} |
128 | | - <a href="{{ U_EDIT_IMPLEMENTED }}" id="implementededit" data-l-add="{{ lang('ADD') }}" data-l-edit="{{ lang('EDIT') }}">{% if IDEA_IMPLEMENTED %}<i class="icon fa-fw fa-pencil"></i>{{ lang('EDIT') }}{% else %}<i class="icon fa-fw fa-plus-circle"></i>{{ lang('ADD') }}{% endif %}</a> |
129 | | - <input type="text" id="implementededitinput" class="ideainput"{% if IDEA_IMPLEMENTED %} value="{{ IDEA_IMPLEMENTED }}"{% endif %} placeholder="3.x.x" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('IMPLEMENTED_ERROR') }}" /> |
130 | | - {% endif %} |
131 | | - </dd> |
132 | | - {% endif %} |
133 | | - </dl> |
| 118 | + {% endif %} |
| 119 | + </div> |
| 120 | + {% endif %} |
| 121 | + {% if IDEA_IMPLEMENTED or S_IS_MOD %} |
| 122 | + <div class="status-item flex-box flex-align-end implementedtoggle" {% if IDEA_STATUS_ID != STATUS_ARY.IMPLEMENTED %}style="display:none"{% endif %}> |
| 123 | + {{ lang('IMPLEMENTED_VERSION') ~ lang('COLON') }} |
| 124 | + <span id="implementedversion"{% if not IDEA_IMPLEMENTED %} style="display:none;"{% endif %}>{{ IDEA_IMPLEMENTED }}</span> |
| 125 | + {% if S_IS_MOD %} |
| 126 | + <a href="{{ U_EDIT_IMPLEMENTED }}" id="implementededit" data-l-add="{{ lang('ADD') }}" data-l-edit="{{ lang('EDIT') }}">{% if IDEA_IMPLEMENTED %}<i class="icon fa-fw fa-pencil"></i>{{ lang('EDIT') }}{% else %}<i class="icon fa-fw fa-plus-circle"></i>{{ lang('ADD') }}{% endif %}</a> |
| 127 | + <input type="text" id="implementededitinput" class="ideainput"{% if IDEA_IMPLEMENTED %} value="{{ IDEA_IMPLEMENTED }}"{% endif %} placeholder="3.x.x" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('IMPLEMENTED_ERROR') }}" /> |
| 128 | + {% endif %} |
| 129 | + </div> |
| 130 | + {% endif %} |
| 131 | + </div> |
| 132 | + </div> |
134 | 133 | </div> |
135 | 134 | </div> |
0 commit comments