38 lines
1.9 KiB
HTML
38 lines
1.9 KiB
HTML
<div
|
|
class="msg_plate msg_plate_<%msgType%>"
|
|
id="msg_<%id%>"
|
|
data-id="<%id%>"
|
|
>
|
|
<div class="msg_icon">
|
|
<%if(src.icon) { %>
|
|
<img src="<%encodeURI(src.icon)%>">
|
|
<%} else {%>
|
|
<img src="<%encodeURI(defaultIcon)%>">
|
|
<%}%>
|
|
</div>
|
|
<div class="msg_body">
|
|
<div class="msg_header">
|
|
<%if(msgType == 'private') {%>
|
|
<span class="msg_target msg_<%src.colorType%>" style="background-color:<%src.color%>;"><%e(src.name)%>:<%e(src.nation)%></span
|
|
><span class="msg_from_to">▶</span
|
|
><span class="msg_target msg_<%dest.colorType%>" style="background-color:<%dest.color%>;"><%e(dest.name)%>:<%e(dest.nation)%></span>
|
|
<%} else if(msgType == 'national' && src.nation_id == dest.nation_id){%>
|
|
<span class="msg_target msg_<%src.colorType%>" style="background-color:<%src.color%>;"><%e(src.name)%>:<%e(src.nation)%></span>
|
|
<%} else if(msgType == 'national' || msgType == 'diplomacy'){%>
|
|
<span class="msg_target msg_<%src.colorType%>" style="background-color:<%src.color%>;"><%e(src.name)%>:<%e(src.nation)%></span
|
|
><span class="msg_from_to">▶</span
|
|
><span class="msg_target msg_<%dest.colorType%>" style="background-color:<%dest.color%>;"><%e(dest.nation)%></span>
|
|
<%} else {%>
|
|
<span class="msg_target msg_<%src.colorType%>" style="background-color:<%src.color%>;"><%e(src.name)%>:<%e(src.nation)%></span>
|
|
<%} %>
|
|
<span class="msg_time"><<%e(time)%>></span>
|
|
</div>
|
|
|
|
<div class="msg_content"><%e(text)%></div>
|
|
<%if(this.option && this.option.action) {%>
|
|
<div class="msg_prompt">
|
|
<button class="prompt_yes btn_prompt">수락</button> <button class="prompt_no btn_prompt">거절</button>
|
|
</div>
|
|
<%} %>
|
|
</div>
|
|
</div> |