forked from redhat-developer/developers.redhat.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack-overflow.html.slim
More file actions
122 lines (116 loc) · 7.11 KB
/
stack-overflow.html.slim
File metadata and controls
122 lines (116 loc) · 7.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
---
layout: technology-base
title: Stack Overflow
drupal_format: as_is_html
---
.hero.hero-wide.stackoverflow-main
.row
.large-10.columns
img(src="https://static.jboss.org/images/rhd/headers/stackoverflow_logo.svg" alt="Stack Overflow logo")
.large-14.columns
h3 You've got questions. We've got answers.
p We know you need high quality answers to your development questions in a timely fashion. Using our selected tags, you can now get answers to your questions directly on Stack Overflow. Our Red Hat experts are waiting for your question!
section.stack-help
.row
.large-4.columns
h3 Need Help?
.large-20.columns
p
| Read
a(href="#{site.base_url}/articles/how-to-post-tag-question-stack-overflow/") How to post and tag questions at Stack Overflow
| to get tips on how to make sure our experts see your question.
div(ng-app="search")
.row(ng-controller="SearchController")
.large-24.columns
.row
.large-24.columns
form.search-bar(role="search" ng-submit="updateSearch(); resetPagination();")
/ input.user-success.user-search(required type="search" placeholder="Enter your search term" id="search_list_text" ng-model="params.query")
.large-24.columns#scrollPoint
.row
.large-14.columns.stackoverflow-filters
label(for="filterByProduct") Filter by Product
.styled-select
select(name="filter-by-product" id="filterByProduct" ng-model="params.product" ng-change="updateSearch(); resetPagination();")
option(value="") Show all
option(value="openjdk") OpenJDK
option(value="rhamt") Red Hat Application Migration Toolkit
option(value="cdk") Red Hat Developer Container Kit
option(value="developertoolset") Red Hat Developer Toolset
option(value="rhel") Red Hat Enterprise Linux
option(value="amq") Red Hat JBoss AMQ
option(value="bpmsuite") Red Hat JBoss BPM Suite
option(value="brms") Red Hat JBoss BRMS
option(value="datagrid") Red Hat JBoss Data Grid
option(value="datavirt") Red Hat JBoss Data Virtualization
option(value="devstudio") Red Hat JBoss Developer Studio
option(value="eap") Red Hat JBoss Enterprise Application Platform
option(value="fuse") Red Hat JBoss Fuse
option(value="webserver") Red Hat JBoss Web Server
option(value="rhmap") Red Hat Mobile Application Platform
option(value="rhoar") Red Hat Openshift Application Runtimes
option(value="openshift") Red Hat OpenShift Container Platform
option(value="softwarecollections") Red Hat Software Collections
option(value="dotnet") .NET Core for Red Hat Enterprise Linux
.large-10.columns
.sorting.so-sorting
p(ng-if="totalCount > 10")
| Show
select(class="results-count" ng-model="params.size" ng-change="updateSearch()")
option(value="10") 10
option(value="25") 25
option(value="50") 50
option(value="100") 100
| results per page
/ span.loader
.row
.large-24.columns
h3.results-title(ng-if="totalCount <= 0" ng-bind-template="No results found")
h4.results-sub-title(ng-if="totalCount <= 0" ng-bind-template="Please select a different product")
span.loader(ng-show="loading")
.stackoverflow-results-container(ng-class="loading ? 'invisible' : 'search-results-loaded'" ng-if="totalCount > 0")
div(ng-repeat="result in results" ng-init="r = result")
.stackoverflow-update
.update
.update-meta
.row
.large-6.columns.qtn-stats
span.votes-count
h4(ng-bind="r._source.up_vote_count")
p(ng-bind-template="Votes")
span.answer-count(ng-class="(r._source.answers[0].is_accepted == true) ? 'accepted-answer' : '' ")
h4(ng-bind="r._source.answer_count")
p(ng-bind-template="Answers")
span.views-count
h4(ng-bind="r._source.view_count")
p(ng-bind-template="Views")
.large-18.columns
h4: a(ng-href="{{r._source.sys_url_view}}" ng-bind="r._source.sys_title")
p.qtn-content(ng-bind-html="r | question")
.callout.qtn-answer(ng-class="r._source.answers[0] ? 'display-answer' : 'hide-answer' ")
p
span(ng-show="r._source.answers[0].is_accepted == true")
strong(ng-bind-template="Accepted answer: ")
span(ng-show="r._source.answers[0].is_accepted == false")
strong(ng-bind-template="Latest answer: ")
span(ng-bind="r._source.answers[0].body | htmlToPlaintext")
a(ng-href="{{r._source.sys_url_view}}" target="_blank" rel="noopener noreferrer" ng-bind-template="Read full question at Stack Overflow ›")
p
span.so-tags
strong.tag-label(ng-bind-template="Tags:")
span.tag(ng-repeat="tag in r._source.sys_tags" ng-bind="tag")
span.so-author(ng-bind-template="{{r | stackDate}} | {{r | author}}")
nav#paginator(ng-hide="loading" ng-if="paginate.pages > 1")
span(ng-bind-template="Showing {{params.from + 1}}-{{paginate.lastVisible}} of {{totalCount}} results")
ul.pagination
li#pagination-first(ng-class="paginate.currentPage < 2 ? 'unavailable': 'available'")
a(ng-click="goToPage('first'); scrollPosition();") First
li#pagination-prev(ng-class="paginate.currentPage < 2 ? 'unavailable': 'available'")
a(ng-click="goToPage('prev'); scrollPosition();") Previous
li.pagination-page-number(ng-repeat="page in paginate.pagesArray track by $index" ng-class="{current: page == paginate.currentPage}" id="pagination-{{$index}}")
a(ng-click="goToPage(page); scrollPosition();" data-page="{{page}}" ng-bind="page")
li#pagination-next(ng-class="paginate.currentPage >= paginate.pages ? 'unavailable': 'available'")
a(ng-click="goToPage('next'); scrollPosition();") Next
li#pagination-last(ng-class="paginate.currentPage == paginate.pages ? 'unavailable': 'available'")
a(ng-click="goToPage('last'); scrollPosition();") Last
.large-6.columns