Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions resources/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ body {
text-align: center;
}

div#right-title {
float: right;
}
div#title-rule {
clear: right;
margin-bottom: 5px;
border-bottom: 1px solid;
}

img {border:none}

div.progress-bar-bg {
Expand Down Expand Up @@ -78,7 +87,7 @@ div.progress-bar {

#top {
width: 85%;
padding: 15px 0px 15px 0px;
padding: 0px 0px 15px 0px;
margin: 0 auto;
}
div#top a {
Expand Down Expand Up @@ -188,7 +197,7 @@ img.gravatar{
height: 84px;
margin-left: -7px;
float:left;
padding:15px 0px 15px 0px;
padding:0px 0px 15px 0px;
border: 0;
}

Expand Down
19 changes: 10 additions & 9 deletions src/foreclojure/problems.clj
Original file line number Diff line number Diff line change
Expand Up @@ -270,18 +270,19 @@ Return a map, {:message, :error, :url, :num-tests-passed}."
{:title (str _id ". " title)
:content
[:div
[:div {:id "right-title"}
[:table#tags
[:tr [:th "Difficulty:"] [:td (or difficulty "N/A")]]
[:tr [:th "Topics:"] [:td (s/join " " tags)]]]
]
[:div#prob-title title]
(if-user [{:keys [solved]}]
(if (some #{(Integer. id)} solved)
(link-to (str "/problem/solutions/" id)
[:button#solutions-link {:type "submit"} "Solutions"])
[:div {:style "clear: right; margin-bottom: 15px;"} " "])
[:div {:style "clear: right; margin-bottom: 15px;"} " "])
[:hr]
[:table#tags
[:tr [:td "Difficulty:"] [:td (or difficulty "N/A")]]
[:tr [:td "Topics:"] [:td (s/join " " tags)]]]
[:br]
[:div
(link-to (str "/problem/solutions/" id)
[:button#solutions-link {:type "submit"} "Solutions"])
"Or go to "[:a {:href "#instruct"} "your solution"]]))
[:div {:id "title-rule"}]
(when-not approved
[:div#submitter "Submitted by: "
(users/mailto user)])
Expand Down