lots of style/mobile changes

This commit is contained in:
jomo
2014-05-01 17:26:44 +02:00
parent 14aaf82407
commit 4774ebbb25
12 changed files with 98 additions and 58 deletions
+1
View File
@@ -9,6 +9,7 @@
<span class="comment-counter">
<%= link_to pluralize(p.comments.count, "Comment"), p %>
</span>
<div class="clear-right"></div>
</div>
<div class="items">
<div class="item content post">
+1
View File
@@ -4,6 +4,7 @@
<%= link_to(image_tag(@post.author.avatar_url(64), class: "avatar"), @post.author, title: @post.author.ign) %>
<%= render partial: "users/username", locals: { user: @post.author } %> <time><%= link_to @post.created_at.strftime("%e. %b %Y, %H:%M"), p %></time>
<%= link_to "edit", edit_blogpost_path(@post.id), class: "editlink" if mod? %>
<div class="clear-right"></div>
</div>
<div class="items">
<div class="item content">
+1
View File
@@ -5,6 +5,7 @@
<time><%= link_to c.created_at.strftime("%e. %b %Y, %H:%M"), "#comment-#{c.id}" %></time>
<%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c), class: "editlink" if (mod? || c.author.is?(current_user)) %>
<div class="clear-right"></div>
</div>
<div class="items">
<div class="item content">
+1
View File
@@ -4,6 +4,7 @@
<div class="header">
<%= group.name %>
<%= link_to "edit", edit_forumgroup_path(group), class: "editlink" if admin? %>
<div class="clear-right"></div>
</div>
<div class="items bold">
+1
View File
@@ -13,6 +13,7 @@
<span class="comment-counter">
<%= link_to pluralize(thread.replies.count, "Reply"), thread %>
</span>
<div class="clear-right"></div>
</div>
<div class="items bold">
<%= link_to thread.title, forumthread_path(thread), class: "item #{"locked" if thread.locked}#{"sticky" if thread.sticky}" %>
+1
View File
@@ -4,6 +4,7 @@
<%= link_to(image_tag(@thread.author.avatar_url(64), class: "avatar"), @thread.author, title: @thread.author.ign) %>
<%= render partial: "users/username", locals: { user: @thread.author } %> <time><%= link_to @thread.created_at.strftime("%e. %b %Y, %H:%M"), p %></time>
<%= link_to "edit", edit_forumthread_path( @thread), class: "editlink" if (@thread.author.is?(current_user) || mod?) %>
<div class="clear-right"></div>
</div>
<div class="items">
<% if @thread.edited? %>
+6 -6
View File
@@ -2,12 +2,12 @@
<div id="menu">
<%= link_to "", root_path, id: "logo" %>
<ul>
<%= link_to statics_path do %><li>Home</li><% end %>
<%= link_to blogposts_path do %><li>News</li><% end %>
<%= link_to info_index_path do %><li>Info</li><% end %>
<%= link_to forums_path do %><li>Forums</li><% end %>
<%= link_to users_path do %><li>Users</li><% end %>
<%= link_to donate_statics_path do %><li>Donate</li><% end %>
<li><%= link_to "Home", statics_path %></li>
<li><%= link_to "News", blogposts_path %></li>
<li><%= link_to "Info", info_index_path %></li>
<li><%= link_to "Forums", forums_path %></li>
<li><%= link_to "Users", users_path %></li>
<li><%= link_to "Donate", donate_statics_path %></li>
</ul>
</div>
<div id="userbar">
-1
View File
@@ -10,7 +10,6 @@
<link type="application/atom+xml" rel="alternate" href="<%= blogposts_path(:atom) %>">
</head>
<body>
<div id="mobile-info">We don't have a mobile style yet. It might look shitty.<br>Tip: Hold your device in landscape mode.</div>
<%= render partial: "/layouts/head" %>
<div id="main-content">
<%= "<div class='flash alert'>#{alert}</div>".html_safe if alert %>
+1
View File
@@ -5,6 +5,7 @@
<time><%= link_to reply.created_at.strftime("%e. %b %Y, %H:%M"), "#reply-#{reply.id}" %></time>
<%= link_to "edit", edit_forumthread_threadreply_path(reply.thread, reply), class: "editlink" if mod? || reply.thread.author.is?(current_user) %>
<div class="clear-right"></div>
</div>
<div class="items">
<div class="item content">