Displaying 20 results from an estimated 200 matches similar to: "best to integrate dynamic navbar into layout"
2006 Jan 04
2
Navigation Helper
I am attempting to integrate a main navigation section into my web
application. Naturally the easiest and DRY way to do this would be to
either include it in a layout, or as a partial. The only problem is
that I want the link for the current page to have its own css id
("current"). The only way I can think to accomplish this is to just
include the navigation in every page, but this is
2020 Jun 07
1
Navbar for documentation is broken in Doxygen 1.8.18
Hi,
Here is a patch to update documentation to Doxygen 1.8.18 as the navbar is broken trying to use the latest Doxygen.
Also seems we are missing documentation for last releases here:
https://www.opus-codec.org/docs/
Best Regards Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 23
3
image_tag problem
Hiall,
I want to make an image_tag from within a controller in order to be
able to present a link (with a status image) in a view. Here is my
controller method (in file webca_controller.rb, hence WebcaController)
def untouched_status_image_tag
image_tag("open", { :alt => "Offen", :title => "Offen", :size =>
"12x12", :class =>
2005 Dec 15
6
Navigation menu
I have a navigation menu that contains a link per controller in my
application.
This menu is the same for all controllers, but I want this behaviour:
<a>Users</a>
<span>Statistics</span>
and
<span>Users</span>
<a>Statistics</a>
depending on the page you''re currently on.
I''ve put a <render :partial =>
2007 Dec 23
1
Rails: possible routing discrepancy
Hey all, I''m seeing a strange behavior in my spec that I can''t
account for. I''ve got a route that looks like this:
map.writing \
''/writing'',
:controller => ''abstracts'', :action => ''index'',
:index => { :select => ''all'' }
and I have template code that looks like this:
<br
2006 Mar 24
3
Changing sidebar in layout per controller
I am currently using 2 layouts in my site. One is for the admin area. I
am trying to get content in my sidebar to change depending upon the
current controller.
Example:
Within admin I have a users controller and a articles controller. When
in the users view I want the sidebar to display options (like add user
delete user etc).
What is the best actionview way to do this. I don''t
2008 Oct 16
3
Rails: View specs and implicit parameters in link_to()
Hi all,
I''ve been cleaning up our routing file, and removed the default
map.connect ":controller/:action" route.
It''s thrown up a bunch of sloppy mistakes, which is great, but I also
think I''ve found a problem with the view specs.
We have a generic navbar partial which is rendered in the index page
of several different controllers. The navbar contains
2011 Dec 30
2
CRAN link broken
The packages link on CRAN (http://cran.at.r-project.org/) seems to be
broken.
Paul
Object not found!
The requested URL was not found on this server. The link on the
referring page<http://cran.at.r-project.org/navbar.html> seems to be
wrong or outdated. Please inform the author of that page
<http://cran.at.r-project.org/navbar.html> about the error.
2008 Jan 13
2
access to webpage code
dear R user,
I need a function that download the code of web page as html, to further
parse it.
something like
>site="http://www.R-project.com"
>code=function(site)
>code
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>The R Project for Statistical Computing</title>
<link rel="icon"
2006 Sep 05
1
Named routes and current_page? incompatibility
Hi,
I have some named routes defined e.g. map.public and wish to use
link_to_unless_current() to disable link.
However, as I''ve seen from forum discussions and the API doc, the issue
lies with the fact that the named_route_url() method generated by a
named route does not default to only_path = true like url_for.
Therefore, the current_page? within link_to_unless_current() will not
2007 Jul 30
2
build a menu (li.selected)
Hello,
when I try to create a menu I found the following limitation:
the event li.selected does not work
and, I am not being able to show an image when the menu option is
selected
in my CSS exists the following code:
.menu li.selected {
...
background: transparent url(/images/menu_selected.gif) 100% 1px
no-repeat;
...
}
in file: ...\layouts\application.rhtml
exists the following code:
<div
2005 Jul 13
1
link_to_unless_current woes...
Hi !
I have the following in my navigation area:
<%= link_to_unless_current image_tag(''events.gif'', :height => 34,
:alt => ''Events''), :controller => ''events'' %>
Works nice untill I am on the events page, in which case the generated
code looks like:
<img alt="Programs" height="34"
2007 Aug 01
4
Extracting a website text content using R
Dear useR,
Just wandering whether it is possible that there is any function in R could
let me get the text contents for a certain website.
Thanks a lot!
Best,
Leon
[[alternative HTML version deleted]]
2006 Feb 15
3
Applying list-item format depending on action
What would be the best way to do this? I have a list and I want one
item to be underlined (depending on the action that I am on). Do I?:
Have a bunch of if statements:
if :controller => ''admin'', :action => ''list''
<li id="current">Pages</li>
else
<li>Pages</li>
end
What do you think? Is there a
2007 Nov 15
3
modern-CentOS-1.7-2
Hi,
the layout on wiki-m.centos.org looks pretty convincing to me, now.
Two things:
<http://people.centos.org/~ralph/pagetrail.png> - the pagetrail stuff
isn't readable at all.
I propose the following patch to screen.css:
-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----%<-----%<
--- screen.css.orig 2007-11-15 12:35:59.000000000 +0000
2015 Jan 02
2
http://www.centos.org/ Help menu anchor
On http://www.centos.org/, the Help in the navbar is described by the anchor
<a href="http://wiki.centos.org/Documentation?action=show&redirect=GettingHelp
<view-source:http://wiki.centos.org/Documentation?action=show&redirect=GettingHelp>">Help</a>
Why does it contain ?action=show&redirect=GettingHelp ? It seems
to me Documentation would be
2008 Dec 17
2
Help with link_to and its kin
Hi Everyone
I am a new user of Ruby and Rails, and would like some help with the
following problem.
I have created a navbar with a styled unordered list and I would like
to apply class="current" to the tab for the current page.
Currently I am using a large, cumbersome and ugly if..then block,
rendering the class="current" into the html and link_tos with
current_page?.
I am
2008 Oct 03
2
cannot open connection: Authorization Required
Hi, All:
Is there a way in R to access a file / web site that requires
permission?
Consider for example the following:
> readLines('http://www.r-project.org/', 4)
[1] "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"
[2] "<html>"
[3]
2006 Mar 30
11
Illegal char \002? Need to restart Rails to see changes?
Hi all,
I''m developing an app on a home Windows computer and using
SVN/Capistrano to deploy to a Linux server. I''m encountering some
bizarre behavior that I think has something to do with Linux and Windows
text file types, but I''m not sure.
What''s happening is that, whenever I edit my view files and reload the
page in my local browser, I see errors saying
2006 Jan 15
7
Include extra partial in layouts
Hi all,
Does anybody know how to include a partial (next to @content_for_layout) in a
layout file?
I''m looking for a something like @partial_for_include => ''filename'' in my
layout files. So a linked .rhtml file gets picked up from within a layout
file. All my layout files (4 at the moment) have a <div class="navright">
tag, so one change in the